donaldp     01/04/01 18:40:31

  Added:       src/java/org/apache/phoenix/engine/listeners
                        ComponentLifecycleListener.java SAErrorHandler.java
  Log:
  Add in some brain-storming code.
  
  Revision  Changes    Path
  1.1                  
jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/listeners/ComponentLifecycleListener.java
  
  Index: ComponentLifecycleListener.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 file.
   */
  package org.apache.phoenix.engine.listeners;
  
  /**
   * This interface abstracts handling of component lifecycle events.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
   */
  public interface ComponentLifecycleListener 
  {
      void startComponentStage( String stage );
      void endComponentStage( String stage );
      void errorComponentStage( String stage );
  }
  
  
  
  1.1                  
jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/listeners/SAErrorHandler.java
  
  Index: SAErrorHandler.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 file.
   */
  package org.apache.phoenix.engine.listeners;
  
  import org.apache.phoenix.metainfo.ServiceInfo;
  
  /**
   * This interface abstracts handling of container errors.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
   */
  public interface SAErrorHandler 
  {
      //On block add
      void missingDependency( String block, String missingDependency );
      void unknownDependency( String block, String unknownDependency );
  
      void unimplementedService( String block, ServiceInfo service );
  
      void startPhase( String phase );
      void endPhase( String phase );
  
      void startTraversingDependencies( String block, boolean isReverse );
  
      /**
       * Indicate that the last dependency on stack has dependencies that are being 
traversed.
       *
       * @param role the role of dependency
       * @param service the service offered by dependency
       */
      void traversingDependency( String role, String service );
  
      void endTraversingDependencies();
  
      void beginBlocksPhase( String block );
      void blockNotPreparedForPhase();
      void blockUsingClassLoader( ClassLoader classLoader );
      void serviceNotOffered( String dependency, ServiceInfo service );
      void endBlocksPhase();
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to