donaldp 2002/08/24 18:36:14
Added: containerkit/src/java/org/apache/excalibur/containerkit/processor
PhaseEntry.java Phase.java
Log:
Start backporting and cleaning phase stuff
Revision Changes Path
1.1
jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/processor/PhaseEntry.java
Index: PhaseEntry.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.excalibur.containerkit.processor;
/**
* The PhaseEntry class defines a particular Phase that
* components can pass through. It defines the traversal
* strategy, the phase and whether or not failure of
* a particular component passing through the Phase
* will cause all processing to be stopped.
*/
public class PhaseEntry
{
public final static int TRAVERSE_DEPS_FORWARD = 0;
public final static int TRAVERSE_DEPS_REVERSE = 1;
public final static int NO_TRAVERSE_DEPS = 2;
private final int m_traversalStrategy;
private final boolean m_haltOnError;
private final Phase m_processor;
public PhaseEntry( final int traversalStrategy,
final boolean haltOnError,
final Phase processor )
{
m_traversalStrategy = traversalStrategy;
m_haltOnError = haltOnError;
m_processor = processor;
}
public int getTraversalStrategy()
{
return m_traversalStrategy;
}
public boolean shouldHaltOnError()
{
return m_haltOnError;
}
public Phase getPhase()
{
return m_processor;
}
}
1.1
jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/processor/Phase.java
Index: Phase.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.excalibur.containerkit.processor;
/**
* The phase is a set of Stages that a component must pass
* through.
*
* @author <a href="mailto:peter at apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/08/25 01:36:14 $
*/
public interface Phase
{
void processPhase( String name, Object object )
throws Exception;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>