org.apache.lenya.workflow.impl
Class ConditionFactory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.workflow.impl.ConditionFactory
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled

public final class ConditionFactory
extends org.apache.avalon.framework.logger.AbstractLogEnabled

Factory to build conditions.


Constructor Summary
ConditionFactory(org.apache.avalon.framework.logger.Logger logger)
          Ctor.
 
Method Summary
protected  org.apache.lenya.workflow.Condition createCondition(java.lang.String className, java.lang.String expression)
          Creates a condition.
 
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
 

Constructor Detail

ConditionFactory

public ConditionFactory(org.apache.avalon.framework.logger.Logger logger)
Ctor.

Parameters:
logger - The logger to use.
Method Detail

createCondition

protected org.apache.lenya.workflow.Condition createCondition(java.lang.String className,
                                                              java.lang.String expression)
                                                       throws org.apache.lenya.workflow.WorkflowException
Creates a condition.

Parameters:
className - The condition class name.
expression - The condition expression.
Returns:
A condition.
Throws:
org.apache.lenya.workflow.WorkflowException - when creating the condition failed.


Copyright $ Apache Software Foundation. All Rights Reserved.