public class StrategyBuilderImpl extends java.lang.Object implements StrategyBuilder
Constructor and Description |
---|
StrategyBuilderImpl(PlasticProxyFactory proxyFactory) |
Modifier and Type | Method and Description |
---|---|
<S> S |
build(java.lang.Class<S> adapterType,
java.util.Map<java.lang.Class,S> registrations) |
<S> S |
build(StrategyRegistry<S> registry)
Given a number of adapters implementing the service interface, builds a "dispatcher" implementations that
delegates to the one of the adapters.
|
public StrategyBuilderImpl(@Builtin PlasticProxyFactory proxyFactory)
public <S> S build(StrategyRegistry<S> registry)
StrategyBuilder
build
in interface StrategyBuilder
S
- the service interface typeregistry
- defines the adapters based on parameter type (of the first parameter)public <S> S build(java.lang.Class<S> adapterType, java.util.Map<java.lang.Class,S> registrations)
build
in interface StrategyBuilder
registrations
- map frm class to the adapter type${project.version} - Copyright © 2003-2015 The Apache Software Foundation.