Log4j 1.3alpha-8

org.apache.log4j.rolling.helper
Class CompositeAction

java.lang.Object
  |
  +--org.apache.log4j.rolling.helper.ActionBase
        |
        +--org.apache.log4j.rolling.helper.CompositeAction
All Implemented Interfaces:
Action, Runnable

public class CompositeAction
extends ActionBase

A group of Actions to be executed in sequence.

Since:
1.3
Author:
Curt Arnold

Constructor Summary
CompositeAction(List actions, boolean stopOnError, ULogger logger)
          Construct a new composite action.
 
Method Summary
 boolean execute()
          Execute sequence of actions.
 void run()
          {@inheritDoc}
 
Methods inherited from class org.apache.log4j.rolling.helper.ActionBase
close, isComplete, reportException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeAction

public CompositeAction(List actions,
                       boolean stopOnError,
                       ULogger logger)
Construct a new composite action.
Parameters:
actions - list of actions, may not be null.
stopOnError - if true, stop on the first false return value or exception.
logger - logger, may be null.
Method Detail

run

public void run()
{@inheritDoc}
Overrides:
run in class ActionBase

execute

public boolean execute()
                throws IOException
Execute sequence of actions.
Overrides:
execute in class ActionBase
Returns:
true if all actions were successful.
Throws:
IOException - on IO error.

Log4j 1.3alpha-8

Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.