com.neeve.toa.spi
Class AbstractTopicResolver<T extends MessageView>

java.lang.Object
  extended by com.neeve.toa.spi.AbstractTopicResolver<T>
All Implemented Interfaces:
TopicResolver<T>

public abstract class AbstractTopicResolver<T extends MessageView>
extends Object
implements TopicResolver<T>

A base class for topic resolvers.

TopicResolver classes may subclass this class to reduce future api changes impacting compatibility.


Field Summary
protected  ToaServiceChannel channel
           
protected  XString channelKey
           
protected static Tracer tracer
           
 
Constructor Summary
AbstractTopicResolver()
           
 
Method Summary
 void initialize(ToaServiceChannel serviceChannel)
          Will be called by TopicOrientedApplication at startup to initialize the channel key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.neeve.toa.spi.TopicResolver
resolveTopic, resolveTopic
 

Field Detail

tracer

protected static final Tracer tracer

channel

protected ToaServiceChannel channel

channelKey

protected XString channelKey
Constructor Detail

AbstractTopicResolver

public AbstractTopicResolver()
Method Detail

initialize

public void initialize(ToaServiceChannel serviceChannel)
Description copied from interface: TopicResolver
Will be called by TopicOrientedApplication at startup to initialize the channel key.

Note that at the time this method is called, TopicOrientedApplication will have set the initial key resolution table via ToaServiceChannel.getInitialKRT().

Variable components of the channel key provided by an ChannelInitialKeyResolutionTableProvider will already have been substituted in the key set in the serviceChannel.

Specified by:
initialize in interface TopicResolver<T extends MessageView>


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.