|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.globus.wsrf.impl.TopicExpressionEngineImpl
Resolves topic expressions over topic lists. The engine looks for topic expression evaluators under "java:comp/env/topic/eval" context.
TopicList| Field Summary | |
private java.util.Map |
evaluators
|
private static org.globus.util.I18n |
i18n
|
(package private) static org.apache.commons.logging.Log |
logger
|
private static java.lang.String |
TOPIC_EXPRESSION_EVALUATOR_CONTEXT
|
| Constructor Summary | |
TopicExpressionEngineImpl()
|
|
| Method Summary | |
java.util.List |
getConcretePath(TopicExpressionType topicExpression)
Converts the expression from dialect specific form to a ordered list of QNames. |
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 |
java.util.Collection |
resolveTopicExpression(TopicExpressionType topicExpression,
TopicList topicList)
Resolves a topic expression using the passed topic list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.lang.String TOPIC_EXPRESSION_EVALUATOR_CONTEXT
private static org.globus.util.I18n i18n
static org.apache.commons.logging.Log logger
private java.util.Map evaluators
| Constructor Detail |
public TopicExpressionEngineImpl()
| Method Detail |
public static TopicExpressionEngine getInstance()
public void refresh()
public void registerEvaluator(TopicExpressionEvaluator evaluator)
TopicExpressionEngine
registerEvaluator in interface TopicExpressionEngineevaluator - implementation of evaluator to be used for evaluating
topic expressionspublic TopicExpressionEvaluator getEvaluator(java.lang.String dialect)
TopicExpressionEngine
getEvaluator in interface TopicExpressionEngine
public java.util.Collection resolveTopicExpression(TopicExpressionType topicExpression,
TopicList topicList)
throws UnsupportedTopicExpressionDialectException,
TopicExpressionResolutionException,
InvalidTopicExpressionException,
TopicExpressionException
TopicExpressionEngine
resolveTopicExpression in interface TopicExpressionEnginetopicExpression - topic expressiontopicList - the topic list to apply the expression to
TopicExpressionResolutionException - if the expression could not be
evaluated
UnsupportedTopicExpressionDialectException - if the topic expression dialect is not
supported
InvalidTopicExpressionException - if the topic expression is invalid
TopicExpressionException - if any other error occurs
public java.util.List getConcretePath(TopicExpressionType topicExpression)
throws UnsupportedTopicExpressionDialectException,
TopicExpressionResolutionException,
InvalidTopicExpressionException,
TopicExpressionException
TopicExpressionEngine
getConcretePath in interface TopicExpressionEnginetopicExpression - topic expression
TopicExpressionException - if any other error occurs
UnsupportedTopicExpressionDialectException - if the topic expression dialect is not
supported
InvalidTopicExpressionException - if the topic expression is invalid
TopicExpressionResolutionException - if the expression could not be
evaluatedpublic 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 | ||||||||||