java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.service.impl.BuilderFacet
org.apache.hivemind.service.impl.BuilderPropertyFacet
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, org.apache.hivemind.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 org.apache.hivemind.schema.Translator.
| Fields inherited from class org.apache.hivemind.service.impl.BuilderFacet |
|
| Fields inherited from class org.apache.hivemind.impl.BaseLocatable |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_translatorName
private java.lang.String _translatorName
_literalValue
private java.lang.String _literalValue
_valuesCache
private java.util.Map _valuesCache
- Cache for translated values to prevent calling
Translator.translate(Module, Class, String, Location)>
Translator.translate(Module, Class, String, Location) 55 twice.
BuilderPropertyFacet
public BuilderPropertyFacet()
getFacetValue
public java.lang.Object getFacetValue(org.apache.hivemind.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
isAssignableToType
public boolean isAssignableToType(org.apache.hivemind.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)