org.apache.hivemind.lib.adapter
Class AdapterRegistryFactory

java.lang.Object
  |
  +--org.apache.hivemind.lib.adapter.AdapterRegistryFactory
All Implemented Interfaces:
org.apache.hivemind.ServiceImplementationFactory

public class AdapterRegistryFactory
extends java.lang.Object
implements org.apache.hivemind.ServiceImplementationFactory

Constructs a service where the first parameter of each method is used to selected an adapter from an AdapterRegistry. The method invocation is then delegated to the adapter.

The service factory parameter defines a configuration (of AdapterRegistryContributionthat provide the mapping from Java classes (or interfaces) to adapter instances.

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
AdapterRegistryFactory()
           
 
Method Summary
 java.lang.Object createCoreServiceImplementation(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParameters)
           
 void setClassFactory(org.apache.hivemind.service.ClassFactory classFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdapterRegistryFactory

public AdapterRegistryFactory()
Method Detail

createCoreServiceImplementation

public java.lang.Object createCoreServiceImplementation(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParameters)
Specified by:
createCoreServiceImplementation in interface org.apache.hivemind.ServiceImplementationFactory

setClassFactory

public void setClassFactory(org.apache.hivemind.service.ClassFactory classFactory)