java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.impl.InvokeFactoryServiceConstructor
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.hivemind.internal.ServiceImplementationConstructor
- public final class InvokeFactoryServiceConstructor
- extends BaseLocatable
- implements org.apache.hivemind.internal.ServiceImplementationConstructor
Constructs a new service by invoking methods on another service (which implements the
org.apache.hivemind.ServiceImplementationFactory interface.
| Fields inherited from class org.apache.hivemind.impl.BaseLocatable |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_factoryServiceId
private java.lang.String _factoryServiceId
_serviceExtensionPoint
private org.apache.hivemind.internal.ServicePoint _serviceExtensionPoint
_contributingModule
private org.apache.hivemind.internal.Module _contributingModule
_parameters
private java.util.List _parameters
- List of org.apache.hivemind.Element, the raw XML parameters.
_factory
private org.apache.hivemind.ServiceImplementationFactory _factory
- The factory service to be invoked.
_convertedParameters
private java.util.List _convertedParameters
- The parameters converted to objects as per the factory's parameter schema.
InvokeFactoryServiceConstructor
public InvokeFactoryServiceConstructor()
constructCoreServiceImplementation
public java.lang.Object constructCoreServiceImplementation()
- Description copied from interface:
org.apache.hivemind.internal.ServiceImplementationConstructor
- Creates a new core service implementation.
- Specified by:
constructCoreServiceImplementation in interface org.apache.hivemind.internal.ServiceImplementationConstructor
checkParameterCounts
private void checkParameterCounts(org.apache.hivemind.ErrorLog log,
org.apache.hivemind.Occurances expected)
- Checks that the number of parameter elements matches the expected count.
getContributingModule
public org.apache.hivemind.internal.Module getContributingModule()
- Description copied from interface:
org.apache.hivemind.internal.ServiceImplementationConstructor
- Returns the module which created the contribution.
- Specified by:
getContributingModule in interface org.apache.hivemind.internal.ServiceImplementationConstructor
setContributingModule
public void setContributingModule(org.apache.hivemind.internal.Module module)
getParameters
public java.util.List getParameters()
getServiceExtensionPoint
public org.apache.hivemind.internal.ServicePoint getServiceExtensionPoint()
setParameters
public void setParameters(java.util.List list)
setFactoryServiceId
public void setFactoryServiceId(java.lang.String string)
setServiceExtensionPoint
public void setServiceExtensionPoint(org.apache.hivemind.internal.ServicePoint point)