org.apache.hivemind
Interface ServiceImplementationFactory

All Known Implementing Classes:
BuilderFactory

public interface ServiceImplementationFactory

Interface for an object that can create a service's core implementation.

Author:
Howard Lewis Ship

Method Summary
 java.lang.Object createCoreServiceImplementation(java.lang.String serviceId, java.lang.Class serviceInterface, Module invokingModule, java.util.List parameters)
          Creates a core implementation object for a particular service extension point.
 

Method Detail

createCoreServiceImplementation

public java.lang.Object createCoreServiceImplementation(java.lang.String serviceId,
                                                        java.lang.Class serviceInterface,
                                                        Module invokingModule,
                                                        java.util.List parameters)
Creates a core implementation object for a particular service extension point. Typically, the factory creates an instance and modifies it to implement the necessary interface (in much the same way that an ServiceInterceptorFactory would).

Parameters:
serviceId - the id of the service extension point for which a core service implementation should be created
serviceInterface - the interface for the service
invokingModule - the module containing the service extension which invokes the factory
parameters - the parameters passed to the factory (possibly converted, if the factory has a parameter schema). May be empty but won't be null.