public class StrategyFactory extends java.lang.Object implements org.apache.hivemind.ServiceImplementationFactory
hivemind.lib.StrategyFactory
service that constructs a
service where the first parameter of each method is used to selecte a strategy from an
StrategyRegistry
. The method invocation is then delegated
to the strategy instance.
The service factory parameter defines a configuration (of
StrategyContribution
s) that provide the mapping from
Java classes (or interfaces) to adapter instances.
Constructor and Description |
---|
StrategyFactory() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createCoreServiceImplementation(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParameters) |
void |
setClassFactory(org.apache.hivemind.service.ClassFactory classFactory) |
public StrategyFactory()
public java.lang.Object createCoreServiceImplementation(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParameters)
createCoreServiceImplementation
in interface org.apache.hivemind.ServiceImplementationFactory
public void setClassFactory(org.apache.hivemind.service.ClassFactory classFactory)