ARTEMIS-92 API update to add transformers
This commit is contained in:
parent
2485bb7af6
commit
ba7a991b11
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue