org.apache.hivemind.service.impl
Class BuilderSmartPropertyFacet

java.lang.Object
  |
  +--org.apache.hivemind.impl.BaseLocatable
        |
        +--org.apache.hivemind.service.impl.BuilderFacet
              |
              +--org.apache.hivemind.service.impl.BuilderSmartPropertyFacet
All Implemented Interfaces:
Locatable, LocationHolder

public class BuilderSmartPropertyFacet
extends BuilderFacet

BuilderFacet that leverages SmartTranslator to automatically convert the input string into an appropriate type.

Author:
Howard Lewis Ship

Constructor Summary
BuilderSmartPropertyFacet()
           
 
Method Summary
 java.lang.Object getFacetValue(java.lang.String point, Module invokingModule, java.lang.Class targetClass)
          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).
 void setAttributeValue(java.lang.String string)
           
 
Methods inherited from class org.apache.hivemind.service.impl.BuilderFacet
autowire, getDefaultPropertyName, getFacetType, 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
 

Constructor Detail

BuilderSmartPropertyFacet

public BuilderSmartPropertyFacet()
Method Detail

getFacetValue

public java.lang.Object getFacetValue(java.lang.String point,
                                      Module invokingModule,
                                      java.lang.Class targetClass)
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:
invokingModule - the Module which invoked the BuilderFactory
targetClass - the desired property type (extracted from the property type of the property to be updated, when a property is known)

setAttributeValue

public void setAttributeValue(java.lang.String string)