lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl ConditionFactory.java
Date Wed, 28 May 2003 15:17:58 GMT
andreas     2003/05/28 08:17:58

  Modified:    src/java/org/apache/lenya/cms/workflow/impl
                        ConditionFactory.java
  Log:
  formatting changed
  
  Revision  Changes    Path
  1.4       +12 -12    cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl/ConditionFactory.java
  
  Index: ConditionFactory.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/workflow/impl/ConditionFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ConditionFactory.java	27 May 2003 15:27:19 -0000	1.3
  +++ ConditionFactory.java	28 May 2003 15:17:57 -0000	1.4
  @@ -7,35 +7,35 @@
   package org.apache.lenya.cms.workflow.impl;
   
   import org.apache.lenya.cms.workflow.Condition;
  +import org.apache.lenya.cms.workflow.WorkflowBuildException;
   
   /**
    *
    * @author  andreas
    */
   public class ConditionFactory {
  -    
  -    public static Condition createCondition(String className, String expression)
  -            throws WorkflowBuildException {
  -                
  +
  +    public static Condition createCondition(
  +        String className,
  +        String expression)
  +        throws WorkflowBuildException {
  +
           assert className != null;
           assert expression != null;
  -        
  +
           Condition condition;
           try {
               Class clazz = Class.forName(className);
               condition = (Condition) clazz.newInstance();
               condition.setExpression(expression);
  -        }
  -        catch (ClassNotFoundException e) {
  +        } catch (ClassNotFoundException e) {
               throw new WorkflowBuildException(e);
  -        }
  -        catch (InstantiationException e) {
  +        } catch (InstantiationException e) {
               throw new WorkflowBuildException(e);
  -        }
  -        catch (IllegalAccessException e) {
  +        } catch (IllegalAccessException e) {
               throw new WorkflowBuildException(e);
           }
           return condition;
       }
  -    
  +
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message