|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.hivemind.impl.BaseLocatable | +--org.apache.hivemind.service.impl.BuilderFacet
Represents one facet of constructing a service implementation instance.
A facet is either a property to be set on the constructed instance,
or a parameter to the instance class' constructor. Facets are nested
properties within BuilderParameter
,
and are used by BuilderFactory
.
Constructor Summary | |
BuilderFacet()
|
Method Summary | |
java.lang.String |
autowire(java.lang.Object target,
java.lang.String serviceId,
Module invokingModule,
org.apache.commons.logging.Log log)
Attempts to autowire a property of the target. |
protected java.lang.String |
getDefaultPropertyName()
Returns null. |
protected java.lang.Class |
getFacetType()
Returns the type of property assigned by this facet, if known. |
abstract java.lang.Object |
getFacetValue(java.lang.String serviceId,
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). |
java.lang.String |
getPropertyName()
|
void |
setPropertyName(java.lang.String string)
|
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 |
public BuilderFacet()
Method Detail |
public abstract java.lang.Object getFacetValue(java.lang.String serviceId, Module invokingModule, java.lang.Class targetType)
invokingModule
- the Module which invoked the BuilderFactorytargetType
- the desired property type (extracted from the property type
of the property to be updated, when a property is known)public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String string)
public java.lang.String autowire(java.lang.Object target, java.lang.String serviceId, Module invokingModule, org.apache.commons.logging.Log log)
protected java.lang.String getDefaultPropertyName()
#autowire(Object)
.
protected java.lang.Class getFacetType()
#autowire(Object, String, Module)
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |