org.apache.cocoon.components.expression
Class ExpressionFactory

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

public class ExpressionFactory
extends AbstractLogEnabled
implements Disposable, Serviceable, ThreadSafe

Version:
SVN $Id: ExpressionFactory.java 325973 2005-10-17 19:59:39Z lgawron $

Field Summary
protected  ServiceSelector compilerSelector
          The Expression compiler selector
static String DEFAULT_EXPRESSION_LANGUAGE
           
protected  ServiceManager manager
          The component manager
static String ROLE
           
 
Constructor Summary
ExpressionFactory()
           
 
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

ROLE

public static String ROLE

DEFAULT_EXPRESSION_LANGUAGE

public static String DEFAULT_EXPRESSION_LANGUAGE

manager

protected ServiceManager manager
The component manager


compilerSelector

protected ServiceSelector compilerSelector
The Expression compiler selector

Constructor Detail

ExpressionFactory

public ExpressionFactory()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

dispose

public void dispose()
Specified by:
dispose in interface Disposable

getExpression

public Expression getExpression(String language,
                                String expression)
                         throws ExpressionException
Throws:
ExpressionException

getExpression

public Expression getExpression(String expression)
                         throws ExpressionException
Throws:
ExpressionException


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.