You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/05/19 05:17:27 UTC

cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/lifecycle State.java

donaldp     02/05/18 20:17:27

  Modified:    src/java/org/apache/avalon/phoenix/components/application
                        AppLifecycleHelper.java
               src/java/org/apache/avalon/phoenix/components/lifecycle
                        State.java
  Log:
  Removed excess States and made startup using Creating/Created states to compliment shutdowns DESTROY/DESTROYED states.
  
  Revision  Changes    Path
  1.9       +2 -2      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/AppLifecycleHelper.java
  
  Index: AppLifecycleHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/application/AppLifecycleHelper.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AppLifecycleHelper.java	19 May 2002 03:07:51 -0000	1.8
  +++ AppLifecycleHelper.java	19 May 2002 03:17:27 -0000	1.9
  @@ -138,7 +138,7 @@
           State state = State.FAILED;
           try
           {
  -            entry.setState( State.STARTING );
  +            entry.setState( State.CREATING );
   
               final Object block =
                   m_lifecycleHelper.startup( entry.getName(),
  @@ -149,7 +149,7 @@
                                           entry.getMetaData(),
                                           block );
   
  -            state = State.STARTED;
  +            state = State.CREATED;
               entry.setObject( block );
   
               m_listenerSupport.fireBlockAddedEvent( entry );
  
  
  
  1.2       +0 -33     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/lifecycle/State.java
  
  Index: State.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/lifecycle/State.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- State.java	14 May 2002 11:58:54 -0000	1.1
  +++ State.java	19 May 2002 03:17:27 -0000	1.2
  @@ -34,39 +34,6 @@
       public final static State CREATED = new State( "CREATED", 0 );
   
       /**
  -     * READYING indicates that the component is being prepared for service.
  -     * In terms of Avalons Component Lifecycle this would indicate Loggable,
  -     * Contextualizable, Composable, Configurable and Initializable stages.
  -     */
  -    public final static State READYING = new State( "READYING", 0 );
  -
  -    /**
  -     * READY indicates that the component is ready to be started
  -     * or destroyed as appropriate.
  -     */
  -    public final static State READY = new State( "READY", 0 );
  -
  -    /**
  -     * STARTING indicates that the component is being started.
  -     */
  -    public final static State STARTING = new State( "STARTING", 0 );
  -
  -    /**
  -     * STARTED indicates that the component has been started.
  -     */
  -    public final static State STARTED = new State( "STARTED", 0 );
  -
  -    /**
  -     * STOPPING indicates that the component is being stopped.
  -     */
  -    public final static State STOPPING = new State( "STOPPING", 0 );
  -
  -    /**
  -     * STOPPED indicates that the component has been stopped.
  -     */
  -    public final static State STOPPED = new State( "STOPPED", 0 );
  -
  -    /**
        * DESTROYING indicates that the component is being destroyed.
        */
       public final static State DESTROYING = new State( "DESTROYING", 0 );
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>