org.apache.hivemind.service.impl
Class BuilderMessagesFacet

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

public class BuilderMessagesFacet
extends BuilderFacet

BuilderFacet whose value is the Messages for the module containing the service being constructed.

Author:
Howard Lewis Ship

Constructor Summary
BuilderMessagesFacet()
           
 
Method Summary
protected  java.lang.String getDefaultPropertyName()
          Returns null.
protected  java.lang.Class getFacetType()
          Returns the type of property assigned by this facet, if known.
 java.lang.Object getFacetValue(java.lang.String point, Module invokingModule, 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).
 
Methods inherited from class org.apache.hivemind.service.impl.BuilderFacet
autowire, 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

BuilderMessagesFacet

public BuilderMessagesFacet()
Method Detail

getFacetValue

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

getDefaultPropertyName

protected java.lang.String getDefaultPropertyName()
Description copied from class: BuilderFacet
Returns null. Subclasses can provide the default name for a property used by #autowire(Object).

Overrides:
getDefaultPropertyName in class BuilderFacet

getFacetType

protected java.lang.Class getFacetType()
Description copied from class: BuilderFacet
Returns the type of property assigned by this facet, if known. Returns null otherwise. This implementation returns null. Used by BuilderFacet.autowire(Object, String, Module).

Overrides:
getFacetType in class BuilderFacet