This closes #37 Service Registry Transformers
This commit is contained in:
commit
7de88ef87a
|
@ -63,8 +63,12 @@ public interface ServiceRegistry
|
||||||
|
|
||||||
Transformer getDivertTransformer(String name);
|
Transformer getDivertTransformer(String name);
|
||||||
|
|
||||||
|
void addDivertTransformer(String name, Transformer transformer);
|
||||||
|
|
||||||
Transformer getBridgeTransformer(String name);
|
Transformer getBridgeTransformer(String name);
|
||||||
|
|
||||||
|
void addBridgeTransformer(String name, Transformer transformer);
|
||||||
|
|
||||||
AcceptorFactory getAcceptorFactory(String name, String className);
|
AcceptorFactory getAcceptorFactory(String name, String className);
|
||||||
|
|
||||||
void addAcceptorFactory(String name, AcceptorFactory acceptorFactory);
|
void addAcceptorFactory(String name, AcceptorFactory acceptorFactory);
|
||||||
|
|
|
@ -140,16 +140,19 @@ public class ServiceRegistryImpl implements ServiceRegistry
|
||||||
return Collections.unmodifiableCollection(outgoingInterceptors.values());
|
return Collections.unmodifiableCollection(outgoingInterceptors.values());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addDivertTransformer(String name, Transformer transformer)
|
public void addDivertTransformer(String name, Transformer transformer)
|
||||||
{
|
{
|
||||||
divertTransformers.put(name, transformer);
|
divertTransformers.put(name, transformer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Transformer getDivertTransformer(String name)
|
public Transformer getDivertTransformer(String name)
|
||||||
{
|
{
|
||||||
return divertTransformers.get(name);
|
return divertTransformers.get(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void addBridgeTransformer(String name, Transformer transformer)
|
public void addBridgeTransformer(String name, Transformer transformer)
|
||||||
{
|
{
|
||||||
bridgeTransformers.put(name, transformer);
|
bridgeTransformers.put(name, transformer);
|
||||||
|
|
Loading…
Reference in New Issue