ARTEMIS-92 API update to add transformers

This commit is contained in:
jbertram 2015-06-17 13:01:57 -05:00
parent 2485bb7af6
commit ba7a991b11
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);