org.apache.hivemind.service.impl
Class BuilderPropertyFacet
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.service.impl.BuilderFacet
org.apache.hivemind.service.impl.BuilderPropertyFacet
- All Implemented Interfaces:
- Locatable, LocationHolder
public class BuilderPropertyFacet
- extends BuilderFacet
Implementation of BuilderFacet
that stores a value. This
corresponds to the <set> type elements and all constructor parameter elements. The value is
not resolved until needed using a specified Translator
.
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuilderPropertyFacet
public BuilderPropertyFacet()
getFacetValue
public java.lang.Object getFacetValue(ServiceImplementationFactoryParameters factoryParameters,
java.lang.Class targetType)
- Description copied from class:
BuilderFacet
- Implemented in subclasses to provide a specific value for the facet (for use as a constructor
parameter, or as a value to set a property to).
- Specified by:
getFacetValue
in class BuilderFacet
- Parameters:
factoryParameters
- the parameters that define the service point and its environmenttargetType
- the desired property type (extracted from the property type of the property to be
updated, when a property is known)
isAssignableToType
public boolean isAssignableToType(ServiceImplementationFactoryParameters factoryParameters,
java.lang.Class targetType)
- Specified by:
isAssignableToType
in class BuilderFacet
setTranslator
public void setTranslator(java.lang.String translatorName)
- Since:
- 1.1
setValue
public void setValue(java.lang.String value)