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

Quick Search    Search Deep

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

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

public class ServiceImplementationFactoryParametersImpl
extends java.lang.Object
implements org.apache.hivemind.ServiceImplementationFactoryParameters

Wrapper around a org.apache.hivemind.internal.ServicePoint and a List of parameters, passed to a org.apache.hivemind.ServiceImplementationFactory.

Since:
1.1

Field Summary
private  org.apache.hivemind.internal.Module _invokingModule
           
private  java.util.List _parameters
           
private  org.apache.hivemind.internal.ServicePoint _servicePoint
           
 
Constructor Summary
ServiceImplementationFactoryParametersImpl(org.apache.hivemind.internal.ServicePoint servicePoint, org.apache.hivemind.internal.Module invokingModule, java.util.List parameters)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          This method is only used in testing.
 org.apache.hivemind.ErrorLog getErrorLog()
          An org.apache.hivemind.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).
 org.apache.hivemind.internal.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
 

Field Detail

_servicePoint

private org.apache.hivemind.internal.ServicePoint _servicePoint

_invokingModule

private org.apache.hivemind.internal.Module _invokingModule

_parameters

private java.util.List _parameters
Constructor Detail

ServiceImplementationFactoryParametersImpl

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

equals

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


getServiceId

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

Specified by:
getServiceId in interface org.apache.hivemind.ServiceImplementationFactoryParameters

getServiceInterface

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

Specified by:
getServiceInterface in interface org.apache.hivemind.ServiceImplementationFactoryParameters

getLog

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

Specified by:
getLog in interface org.apache.hivemind.ServiceImplementationFactoryParameters

getErrorLog

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

Specified by:
getErrorLog in interface org.apache.hivemind.ServiceImplementationFactoryParameters

getInvokingModule

public org.apache.hivemind.internal.Module getInvokingModule()
Description copied from interface: org.apache.hivemind.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 org.apache.hivemind.ServiceImplementationFactoryParameters

getParameters

public java.util.List getParameters()
Description copied from interface: org.apache.hivemind.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 org.apache.hivemind.ServiceImplementationFactoryParameters

getFirstParameter

public java.lang.Object getFirstParameter()
Description copied from interface: org.apache.hivemind.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 org.apache.hivemind.ServiceImplementationFactoryParameters