Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.impl
Class InvokeFactoryServiceConstructor  view InvokeFactoryServiceConstructor download InvokeFactoryServiceConstructor.java

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.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.


Field Summary
private  org.apache.hivemind.internal.Module _contributingModule
           
private  java.util.List _convertedParameters
          The parameters converted to objects as per the factory's parameter schema.
private  org.apache.hivemind.ServiceImplementationFactory _factory
          The factory service to be invoked.
private  java.lang.String _factoryServiceId
           
private  java.util.List _parameters
          List of org.apache.hivemind.Element, the raw XML parameters.
private  org.apache.hivemind.internal.ServicePoint _serviceExtensionPoint
           
 
Fields inherited from class org.apache.hivemind.impl.BaseLocatable
 
Constructor Summary
InvokeFactoryServiceConstructor()
           
 
Method Summary
private  void checkParameterCounts(org.apache.hivemind.ErrorLog log, org.apache.hivemind.Occurances expected)
          Checks that the number of parameter elements matches the expected count.
 java.lang.Object constructCoreServiceImplementation()
          Creates a new core service implementation.
 org.apache.hivemind.internal.Module getContributingModule()
          Returns the module which created the contribution.
 java.util.List getParameters()
           
 org.apache.hivemind.internal.ServicePoint getServiceExtensionPoint()
           
 void setContributingModule(org.apache.hivemind.internal.Module module)
           
 void setFactoryServiceId(java.lang.String string)
           
 void setParameters(java.util.List list)
           
 void setServiceExtensionPoint(org.apache.hivemind.internal.ServicePoint point)
           
 
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
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Field Detail

_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.

Constructor Detail

InvokeFactoryServiceConstructor

public InvokeFactoryServiceConstructor()
Method Detail

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)