org.apache.ws.resource.properties.query.impl
Class QueryEngineImpl

java.lang.Object
  extended byorg.apache.ws.resource.properties.query.impl.QueryEngineImpl
All Implemented Interfaces:
QueryEngine

public class QueryEngineImpl
extends java.lang.Object
implements QueryEngine

LOG-DONE Executes queries on resource property sets. The engine looks for evaluators under "java:comp/env/query/eval" context.

See Also:
ResourcePropertySet

Field Summary
static org.apache.ws.util.i18n.Messages MSG
           
 
Constructor Summary
QueryEngineImpl()
          Creates a new QueryEngineImpl object.
 
Method Summary
 java.lang.Object executeQuery(QueryExpression queryExpr, ResourcePropertySet resourcePropertySet, org.w3c.dom.Element nsContext)
          DOCUMENT_ME
 ExpressionEvaluator getEvaluator(java.net.URI dialect)
          Gets the evaluator currently registered to handle an expression of the specified qualified name (from the top level element of the XML Schema definition of the expression)
 void refresh()
          Reinitializes the evaluators list from JNDI context.
 void registerEvaluator(ExpressionEvaluator evaluator)
          DOCUMENT_ME
 void registerEvaluator(java.net.URI dialect, ExpressionEvaluator evaluator)
          DOCUMENT_ME
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG

public static final org.apache.ws.util.i18n.Messages MSG
Constructor Detail

QueryEngineImpl

public QueryEngineImpl()
Creates a new QueryEngineImpl object.

Method Detail

getEvaluator

public ExpressionEvaluator getEvaluator(java.net.URI dialect)
Description copied from interface: QueryEngine
Gets the evaluator currently registered to handle an expression of the specified qualified name (from the top level element of the XML Schema definition of the expression)

Specified by:
getEvaluator in interface QueryEngine
Parameters:
dialect -
Returns:

executeQuery

public java.lang.Object executeQuery(QueryExpression queryExpr,
                                     ResourcePropertySet resourcePropertySet,
                                     org.w3c.dom.Element nsContext)
                              throws UnknownQueryExpressionDialectException,
                                     QueryEvaluationErrorException,
                                     InvalidQueryExpressionException
DOCUMENT_ME

Specified by:
executeQuery in interface QueryEngine
Parameters:
queryExpr - DOCUMENT_ME
resourcePropertySet - DOCUMENT_ME
nsContext - DOCUMENT_ME
Returns:
DOCUMENT_ME
Throws:
UnknownQueryExpressionDialectException - DOCUMENT_ME
QueryEvaluationErrorException - DOCUMENT_ME
InvalidQueryExpressionException - DOCUMENT_ME
UnknownQueryExpressionDialectFaultException - DOCUMENT_ME

refresh

public void refresh()
Reinitializes the evaluators list from JNDI context. If any evaluators were added using registerEvaluator() function they will be lost.


registerEvaluator

public void registerEvaluator(ExpressionEvaluator evaluator)
DOCUMENT_ME

Specified by:
registerEvaluator in interface QueryEngine
Parameters:
evaluator - DOCUMENT_ME

registerEvaluator

public void registerEvaluator(java.net.URI dialect,
                              ExpressionEvaluator evaluator)
                       throws UnknownQueryExpressionDialectException
Description copied from interface: QueryEngine
DOCUMENT_ME

Specified by:
registerEvaluator in interface QueryEngine
Parameters:
dialect -
evaluator -
Throws:
UnknownQueryExpressionDialectFaultException
UnknownQueryExpressionDialectException - DOCUMENT_ME


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.