|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.notification.topics.expression.impl.TopicExpressionEngineImpl
Resolves topic expressions over topic lists. The engine looks for topic expression evaluators under "wsrf/topic/eval" context.
TopicSpaceSet
Constructor Summary | |
TopicExpressionEngineImpl()
|
Method Summary | |
Topic[] |
evaluateTopicExpression(TopicSpaceSet topicSpaceSet,
TopicExpression topicExpression)
Resolves a topic expression using the passed topic list. |
TopicExpressionEvaluator |
getEvaluator(java.lang.String dialect)
Gets the evaluator currently registered to handle a topic expression of the specified dialect. |
static TopicExpressionEngine |
getInstance()
Get the default topic expression engine instance (currently used to hide JNDI lookup details, may change in the future) |
java.lang.String[] |
getSupportedDialects()
Returns a list of URIs representing the registered topic expression dialects |
void |
refresh()
Refresh the set of registered topic expression evaluators using information discovered from the JNDI registry. |
void |
registerEvaluator(TopicExpressionEvaluator evaluator)
registers a new evaluator that can be used to evaluate topic expressions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TopicExpressionEngineImpl()
Method Detail |
public static TopicExpressionEngine getInstance()
public void refresh()
public void registerEvaluator(TopicExpressionEvaluator evaluator)
TopicExpressionEngine
registerEvaluator
in interface TopicExpressionEngine
evaluator
- implementation of evaluator to be used for evaluating
topic expressionspublic TopicExpressionEvaluator getEvaluator(java.lang.String dialect)
TopicExpressionEngine
getEvaluator
in interface TopicExpressionEngine
public Topic[] evaluateTopicExpression(TopicSpaceSet topicSpaceSet, TopicExpression topicExpression) throws TopicPathDialectUnknownException, TopicExpressionResolutionException, InvalidTopicExpressionException, TopicExpressionException
TopicExpressionEngine
evaluateTopicExpression
in interface TopicExpressionEngine
topicSpaceSet
- the topic list to apply the expression totopicExpression
- topic expression
TopicExpressionResolutionException
- if the expression could not be
evaluated
InvalidTopicExpressionException
- if the topic expression is invalid
TopicPathDialectUnknownException
- if the topic expression dialect is not
supported
TopicExpressionException
- if any other error occurspublic java.lang.String[] getSupportedDialects()
TopicExpressionEngine
getSupportedDialects
in interface TopicExpressionEngine
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |