org.apache.hivemind.impl
Class ServiceImplementationFactoryParametersImpl

java.lang.Object
  extended by org.apache.hivemind.impl.ServiceImplementationFactoryParametersImpl
All Implemented Interfaces:
ServiceImplementationFactoryParameters

public class ServiceImplementationFactoryParametersImpl
extends java.lang.Object
implements ServiceImplementationFactoryParameters

Wrapper around a ServicePoint and a List of parameters, passed to a ServiceImplementationFactory.

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
ServiceImplementationFactoryParametersImpl(ServicePoint servicePoint, Module invokingModule, java.util.List parameters)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          This method is only used in testing.
 ErrorLog getErrorLog()
          An ErrorLog instance used for reporting recoverable errors related to the service (or the construction of the service).
 java.lang.Object getFirstParameter()
          Returns the first parameter passed to the factory (since most factories take exactly one parameter, this is the most common usage).
 Module getInvokingModule()
          The module containing the service constructor.
 org.apache.commons.logging.Log getLog()
          The log used for any output related to the service (or the construction of the service).
 java.util.List getParameters()
          The parameters passed to the factory to guide the construction of the service.
 java.lang.String getServiceId()
          The fully qualified id of the service.
 java.lang.Class getServiceInterface()
          The interface defined for the service.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceImplementationFactoryParametersImpl

public ServiceImplementationFactoryParametersImpl(ServicePoint servicePoint,
                                                  Module invokingModule,
                                                  java.util.List parameters)
Method Detail

equals

public boolean equals(java.lang.Object other)
This method is only used in testing.

Overrides:
equals in class java.lang.Object

getServiceId

public java.lang.String getServiceId()
Description copied from interface: ServiceImplementationFactoryParameters
The fully qualified id of the service.

Specified by:
getServiceId in interface ServiceImplementationFactoryParameters

getServiceInterface

public java.lang.Class getServiceInterface()
Description copied from interface: ServiceImplementationFactoryParameters
The interface defined for the service.

Specified by:
getServiceInterface in interface ServiceImplementationFactoryParameters

getLog

public org.apache.commons.logging.Log getLog()
Description copied from interface: ServiceImplementationFactoryParameters
The log used for any output related to the service (or the construction of the service).

Specified by:
getLog in interface ServiceImplementationFactoryParameters

getErrorLog

public ErrorLog getErrorLog()
Description copied from interface: ServiceImplementationFactoryParameters
An ErrorLog instance used for reporting recoverable errors related to the service (or the construction of the service).

Specified by:
getErrorLog in interface ServiceImplementationFactoryParameters

getInvokingModule

public Module getInvokingModule()
Description copied from interface: ServiceImplementationFactoryParameters
The module containing the service constructor. Primarily used to locate other services (or configurations) using simple (non-qualified) ids.

Specified by:
getInvokingModule in interface ServiceImplementationFactoryParameters

getParameters

public java.util.List getParameters()
Description copied from interface: ServiceImplementationFactoryParameters
The parameters passed to the factory to guide the construction of the service. In most cases, there will only be a single element in the list.

Specified by:
getParameters in interface ServiceImplementationFactoryParameters

getFirstParameter

public java.lang.Object getFirstParameter()
Description copied from interface: ServiceImplementationFactoryParameters
Returns the first parameter passed to the factory (since most factories take exactly one parameter, this is the most common usage). If no parameters exist, returns null.

Specified by:
getFirstParameter in interface ServiceImplementationFactoryParameters