org.apache.cocoon.components.expression
Class DefaultExpressionFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.expression.DefaultExpressionFactory
All Implemented Interfaces:
Disposable, LogEnabled, Serviceable, ThreadSafe, ExpressionFactory

public class DefaultExpressionFactory
extends AbstractLogEnabled
implements Disposable, Serviceable, ThreadSafe, ExpressionFactory

Version:
$Id: DefaultExpressionFactory.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Field Summary
protected  ServiceSelector compilerSelector
          The Expression compiler selector
static String DEFAULT_EXPRESSION_LANGUAGE
           
protected  ServiceManager manager
          The component manager
 
Fields inherited from interface org.apache.cocoon.components.expression.ExpressionFactory
ROLE
 
Constructor Summary
DefaultExpressionFactory()
           
 
Method Summary
 void dispose()
           
 Expression getExpression(String expression)
           
 Expression getExpression(String language, String expression)
           
 void service(ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_EXPRESSION_LANGUAGE

public static final String DEFAULT_EXPRESSION_LANGUAGE
See Also:
Constant Field Values

manager

protected ServiceManager manager
The component manager


compilerSelector

protected ServiceSelector compilerSelector
The Expression compiler selector

Constructor Detail

DefaultExpressionFactory

public DefaultExpressionFactory()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

dispose

public void dispose()
Specified by:
dispose in interface Disposable
See Also:
Disposable.dispose()

getExpression

public Expression getExpression(String language,
                                String expression)
                         throws ExpressionException
Specified by:
getExpression in interface ExpressionFactory
Throws:
ExpressionException

getExpression

public Expression getExpression(String expression)
                         throws ExpressionException
Specified by:
getExpression in interface ExpressionFactory
Throws:
ExpressionException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.