public abstract class BuilderFacet extends BaseLocatable
BuilderParameter
, and are used by
BuilderFactory
.Constructor and Description |
---|
BuilderFacet() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
autowire(java.lang.Object target,
ServiceImplementationFactoryParameters factoryParameters)
Attempts to autowire a property of the target.
|
boolean |
canAutowireConstructorParameter() |
protected java.lang.String |
getDefaultPropertyName()
Returns null.
|
abstract java.lang.Object |
getFacetValue(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).
|
java.lang.String |
getPropertyName() |
abstract boolean |
isAssignableToType(ServiceImplementationFactoryParameters factoryParameters,
java.lang.Class targetType) |
void |
setPropertyName(java.lang.String string) |
getLocation, setLocation
public BuilderFacet()
public abstract java.lang.Object getFacetValue(ServiceImplementationFactoryParameters factoryParameters, java.lang.Class targetType)
factoryParameters
- the parameters that define the service point and its environmenttargetType
- the desired property type (extracted from the property type of the property to be
updated, when a property is known)public abstract boolean isAssignableToType(ServiceImplementationFactoryParameters factoryParameters, java.lang.Class targetType)
public java.lang.String getPropertyName()
public void setPropertyName(java.lang.String string)
public java.lang.String autowire(java.lang.Object target, ServiceImplementationFactoryParameters factoryParameters)
target
- The service implementation being constructedfactoryParameters
- the parameters that define the service point and its environmentprotected java.lang.String getDefaultPropertyName()
autowire(Object, ServiceImplementationFactoryParameters)
.public boolean canAutowireConstructorParameter()