Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.service.impl
Class BuilderPropertyFacet  view BuilderPropertyFacet download BuilderPropertyFacet.java

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.hivemind.service.impl.BuilderFacet
          extended byorg.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.


Field Summary
private  java.lang.String _literalValue
           
private  java.lang.String _translatorName
           
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.
 
Fields inherited from class org.apache.hivemind.service.impl.BuilderFacet
 
Fields inherited from class org.apache.hivemind.impl.BaseLocatable
 
Constructor Summary
BuilderPropertyFacet()
           
 
Method Summary
 java.lang.Object getFacetValue(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParameters, java.lang.Class targetType)
          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).
 boolean isAssignableToType(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParameters, java.lang.Class targetType)
           
 void setTranslator(java.lang.String translatorName)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class org.apache.hivemind.service.impl.BuilderFacet
autowire, canAutowireConstructorParameter, getDefaultPropertyName, getPropertyName, setPropertyName
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_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.

Constructor Detail

BuilderPropertyFacet

public BuilderPropertyFacet()
Method Detail

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)