This closes #37 Service Registry Transformers

This commit is contained in:
Clebert Suconic 2015-06-17 14:06:02 -04:00
commit 7de88ef87a
2 changed files with 7 additions and 0 deletions

View File

@ -63,8 +63,12 @@ public interface ServiceRegistry
Transformer getDivertTransformer(String name);
void addDivertTransformer(String name, Transformer transformer);
Transformer getBridgeTransformer(String name);
void addBridgeTransformer(String name, Transformer transformer);
AcceptorFactory getAcceptorFactory(String name, String className);
void addAcceptorFactory(String name, AcceptorFactory acceptorFactory);

View File

@ -140,16 +140,19 @@ public class ServiceRegistryImpl implements ServiceRegistry
return Collections.unmodifiableCollection(outgoingInterceptors.values());
}
@Override
public void addDivertTransformer(String name, Transformer transformer)
{
divertTransformers.put(name, transformer);
}
@Override
public Transformer getDivertTransformer(String name)
{
return divertTransformers.get(name);
}
@Override
public void addBridgeTransformer(String name, Transformer transformer)
{
bridgeTransformers.put(name, transformer);