java.lang.Object
org.apache.hivemind.service.impl.BuilderFactoryLogic
- public class BuilderFactoryLogic
- extends java.lang.Object
Created by BuilderFactory for each service to be
created; encapsulates all the direct and indirect parameters used to construct a service.
|
Method Summary |
private void |
autowireProperty(java.lang.Object service,
java.lang.String propertyName)
|
private void |
autowireServices(java.lang.Object service,
java.util.Collection propertyNames)
|
java.lang.Object |
createService()
|
private void |
error(java.lang.String message,
org.apache.hivemind.Location location,
java.lang.Throwable cause)
|
private void |
findAndInvokeInitializerMethod(java.lang.Object service,
java.lang.String methodName,
boolean allowMissing)
|
private org.apache.hivemind.ErrorHandler |
getErrorHandler()
|
private java.util.List |
getOrderedServiceConstructors(java.lang.Class serviceClass)
|
private java.util.List |
getServiceConstructorsOfLength(java.lang.Class serviceClass,
int length)
|
private java.lang.Object |
instantiateConstructorAutowiredInstance(java.lang.Class serviceClass)
|
private java.lang.Object |
instantiateCoreServiceInstance()
|
private java.lang.Object |
instantiateExplicitConstructorInstance(java.lang.Class serviceClass,
java.util.List builderParameters)
|
private void |
invokeInitializer(java.lang.Object service)
|
private void |
registerForEvents(java.lang.Object result)
|
private void |
setProperties(java.lang.Object service)
|
private java.lang.String |
wireProperty(java.lang.Object service,
BuilderFacet facet)
Wire (or auto-wire) the property; return the name of the property actually set (if a property
is set, which is not always the case). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_factoryParameters
private org.apache.hivemind.ServiceImplementationFactoryParameters _factoryParameters
- Since:
- 1.1
_serviceId
private java.lang.String _serviceId
_parameter
private BuilderParameter _parameter
_log
private org.apache.commons.logging.Log _log
_contributingModule
private org.apache.hivemind.internal.Module _contributingModule
BuilderFactoryLogic
public BuilderFactoryLogic(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParameters,
BuilderParameter parameter)
createService
public java.lang.Object createService()
error
private void error(java.lang.String message,
org.apache.hivemind.Location location,
java.lang.Throwable cause)
instantiateCoreServiceInstance
private java.lang.Object instantiateCoreServiceInstance()
instantiateExplicitConstructorInstance
private java.lang.Object instantiateExplicitConstructorInstance(java.lang.Class serviceClass,
java.util.List builderParameters)
getServiceConstructorsOfLength
private java.util.List getServiceConstructorsOfLength(java.lang.Class serviceClass,
int length)
instantiateConstructorAutowiredInstance
private java.lang.Object instantiateConstructorAutowiredInstance(java.lang.Class serviceClass)
getOrderedServiceConstructors
private java.util.List getOrderedServiceConstructors(java.lang.Class serviceClass)
invokeInitializer
private void invokeInitializer(java.lang.Object service)
findAndInvokeInitializerMethod
private void findAndInvokeInitializerMethod(java.lang.Object service,
java.lang.String methodName,
boolean allowMissing)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException
registerForEvents
private void registerForEvents(java.lang.Object result)
setProperties
private void setProperties(java.lang.Object service)
wireProperty
private java.lang.String wireProperty(java.lang.Object service,
BuilderFacet facet)
- Wire (or auto-wire) the property; return the name of the property actually set (if a property
is set, which is not always the case).
autowireServices
private void autowireServices(java.lang.Object service,
java.util.Collection propertyNames)
autowireProperty
private void autowireProperty(java.lang.Object service,
java.lang.String propertyName)
getErrorHandler
private org.apache.hivemind.ErrorHandler getErrorHandler()