org.apache.hivemind.service.impl
Class BuilderClassResolverFacet

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.hivemind.service.impl.BuilderFacet
          extended by org.apache.hivemind.service.impl.BuilderClassResolverFacet
All Implemented Interfaces:
Locatable, LocationHolder

public class BuilderClassResolverFacet
extends BuilderFacet

BuilderFacet whose value is the ClassResolver of the contributing module.

Author:
Howard Lewis Ship

Constructor Summary
BuilderClassResolverFacet()
           
 
Method Summary
 boolean canAutowireConstructorParameter()
           
protected  java.lang.String getDefaultPropertyName()
          Returns null.
 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).
 boolean isAssignableToType(ServiceImplementationFactoryParameters factoryParameters, java.lang.Class targetType)
           
 
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

BuilderClassResolverFacet

public BuilderClassResolverFacet()
Method Detail

getFacetValue

public java.lang.Object getFacetValue(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
Parameters:
factoryParameters - the parameters that define the service point and its environment
targetType - the desired property type (extracted from the property type of the property to be updated, when a property is known)

isAssignableToType

public boolean isAssignableToType(ServiceImplementationFactoryParameters factoryParameters,
                                  java.lang.Class targetType)
Specified by:
isAssignableToType in class BuilderFacet

getDefaultPropertyName

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

Overrides:
getDefaultPropertyName in class BuilderFacet

canAutowireConstructorParameter

public boolean canAutowireConstructorParameter()
Overrides:
canAutowireConstructorParameter in class BuilderFacet
Since:
1.1