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/02/17 12:15:29 UTC

cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces SystemManager.java PackageRepository.java LogManager.java KernelMBean.java Kernel.java ExtensionManagerMBean.java EmbeddorMBean.java Embeddor.java DeploymentRecorder.java Deployer.java ConfigurationRepository.java ClassLoaderManager.java ApplicationMBean.java ApplicationContext.java Application.java

donaldp     02/02/17 03:15:29

  Modified:    src/java/org/apache/avalon/phoenix/interfaces
                        SystemManager.java PackageRepository.java
                        LogManager.java KernelMBean.java Kernel.java
                        ExtensionManagerMBean.java EmbeddorMBean.java
                        Embeddor.java DeploymentRecorder.java Deployer.java
                        ConfigurationRepository.java
                        ClassLoaderManager.java ApplicationMBean.java
                        ApplicationContext.java Application.java
  Log:
  Update role strings to be generated from class object
  
  Revision  Changes    Path
  1.4       +1 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/SystemManager.java
  
  Index: SystemManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/SystemManager.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SystemManager.java	11 Dec 2001 10:13:34 -0000	1.3
  +++ SystemManager.java	17 Feb 2002 11:15:28 -0000	1.4
  @@ -22,7 +22,7 @@
   public interface SystemManager
       extends Component, Initializable, Startable, Disposable
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.SystemManager";
  +    String ROLE = SystemManager.class.getName();
   
       /**
        * Register an object for management.
  
  
  
  1.6       +2 -2      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/PackageRepository.java
  
  Index: PackageRepository.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/PackageRepository.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PackageRepository.java	11 Dec 2001 10:13:34 -0000	1.5
  +++ PackageRepository.java	17 Feb 2002 11:15:28 -0000	1.6
  @@ -13,10 +13,10 @@
    * PackageRepository
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.5 $ $Date: 2001/12/11 10:13:34 $
  + * @version $Revision: 1.6 $ $Date: 2002/02/17 11:15:28 $
    */
   public interface PackageRepository
       extends org.apache.avalon.excalibur.extension.PackageRepository, Component
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.PackageRepository";
  +    String ROLE = PackageRepository.class.getName();
   }
  
  
  
  1.5       +1 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/LogManager.java
  
  Index: LogManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/LogManager.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LogManager.java	11 Dec 2001 10:13:34 -0000	1.4
  +++ LogManager.java	17 Feb 2002 11:15:28 -0000	1.5
  @@ -20,7 +20,7 @@
   public interface LogManager
       extends Component
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.LogManager";
  +    String ROLE = LogManager.class.getName();
   
       Hierarchy createHierarchy( SarMetaData metaData, Configuration logs )
           throws Exception;
  
  
  
  1.2       +2 -2      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/KernelMBean.java
  
  Index: KernelMBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/KernelMBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- KernelMBean.java	1 Feb 2002 12:45:46 -0000	1.1
  +++ KernelMBean.java	17 Feb 2002 11:15:28 -0000	1.2
  @@ -15,14 +15,14 @@
   import org.apache.log.Hierarchy;
   
   /**
  - * This is the interface via which you can manager 
  + * This is the interface via which you can manager
    * the root container of Applications.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    */
   public interface KernelMBean
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.KernelMBean";
  +    String ROLE = KernelMBean.class.getName();
   
       String[] getApplicationNames();
   
  
  
  
  1.7       +1 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/Kernel.java
  
  Index: Kernel.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/Kernel.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Kernel.java	11 Dec 2001 10:13:34 -0000	1.6
  +++ Kernel.java	17 Feb 2002 11:15:28 -0000	1.7
  @@ -21,7 +21,7 @@
   public interface Kernel
       extends Component, Initializable, Disposable
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.Kernel";
  +    String ROLE = Kernel.class.getName();
   
       void addApplication( SarMetaData metaData,
                            ClassLoader classLoader,
  
  
  
  1.3       +3 -3      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ExtensionManagerMBean.java
  
  Index: ExtensionManagerMBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ExtensionManagerMBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ExtensionManagerMBean.java	11 Dec 2001 10:13:34 -0000	1.2
  +++ ExtensionManagerMBean.java	17 Feb 2002 11:15:28 -0000	1.3
  @@ -11,16 +11,16 @@
    * Management interface to ExtensionManager.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2001/12/11 10:13:34 $
  + * @version $Revision: 1.3 $ $Date: 2002/02/17 11:15:28 $
    */
   public interface ExtensionManagerMBean
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.ExtensionManagerMBean";
  +    String ROLE = ExtensionManagerMBean.class.getName();
   
       /**
        * Retrieve an array of paths where each
        * element in array represents a directory
  -     * in which the ExtensionManager will look 
  +     * in which the ExtensionManager will look
        * for Extensions.
        *
        * @return the list of paths to search in
  
  
  
  1.5       +3 -3      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/EmbeddorMBean.java
  
  Index: EmbeddorMBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/EmbeddorMBean.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- EmbeddorMBean.java	11 Dec 2001 10:13:34 -0000	1.4
  +++ EmbeddorMBean.java	17 Feb 2002 11:15:28 -0000	1.5
  @@ -10,14 +10,14 @@
   import java.util.Date;
   
   /**
  - * This is the interface via which the Management interface interacts 
  + * This is the interface via which the Management interface interacts
    * with the Embeddor.
    *
    * @author <a href="peter@apache.org">Peter Donald</a>
    */
   public interface EmbeddorMBean
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.EmbeddorMBean";
  +    String ROLE = EmbeddorMBean.class.getName();
   
       /**
        * Get name by which the server is know.
  @@ -75,7 +75,7 @@
   
       /**
        * Request the embeddor to restart.
  -     * 
  +     *
        * @exception UnsupportedOperationException if restart not a supported operation
        */
       void restart()
  
  
  
  1.5       +1 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/Embeddor.java
  
  Index: Embeddor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/Embeddor.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Embeddor.java	11 Dec 2001 10:13:34 -0000	1.4
  +++ Embeddor.java	17 Feb 2002 11:15:28 -0000	1.5
  @@ -22,7 +22,7 @@
   public interface Embeddor
       extends Component, Initializable, Executable, Disposable
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.Embeddor";
  +    String ROLE = Embeddor.class.getName();
   
       /**
        * Request the Embeddor shutsdown.
  
  
  
  1.4       +3 -3      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/DeploymentRecorder.java
  
  Index: DeploymentRecorder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/DeploymentRecorder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DeploymentRecorder.java	11 Dec 2001 10:13:34 -0000	1.3
  +++ DeploymentRecorder.java	17 Feb 2002 11:15:28 -0000	1.4
  @@ -15,10 +15,10 @@
    *
    * @author <a href="mailto:mirceatoma@home.com">Mircea Toma</a>
    */
  -public interface DeploymentRecorder extends Component
  +public interface DeploymentRecorder
  +    extends Component
   {
  -
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.DeploymentRecorder";
  +    String ROLE = DeploymentRecorder.class.getName();
   
       void recordInstallation( String name, Installation installation )
           throws DeploymentException;
  
  
  
  1.5       +2 -2      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/Deployer.java
  
  Index: Deployer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/Deployer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Deployer.java	11 Dec 2001 10:13:34 -0000	1.4
  +++ Deployer.java	17 Feb 2002 11:15:28 -0000	1.5
  @@ -22,13 +22,13 @@
   public interface Deployer
       extends Component
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.Deployer";
  +    String ROLE = Deployer.class.getName();
   
       /**
        * Deploy an installation.
        *
        * @param name the name of deployment
  -     * @param installation the installation to deploy
  +     * @param location the installation to deploy
        * @exception DeploymentException if an error occurs
        */
       void deploy( String name, URL location )
  
  
  
  1.7       +1 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ConfigurationRepository.java
  
  Index: ConfigurationRepository.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ConfigurationRepository.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ConfigurationRepository.java	11 Dec 2001 10:13:34 -0000	1.6
  +++ ConfigurationRepository.java	17 Feb 2002 11:15:28 -0000	1.7
  @@ -19,7 +19,7 @@
   public interface ConfigurationRepository
       extends Component
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.ConfigurationRepository";
  +    String ROLE = ConfigurationRepository.class.getName();
   
       Configuration getConfiguration( String application, String block )
           throws ConfigurationException;
  
  
  
  1.8       +1 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ClassLoaderManager.java
  
  Index: ClassLoaderManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ClassLoaderManager.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ClassLoaderManager.java	11 Dec 2001 10:13:34 -0000	1.7
  +++ ClassLoaderManager.java	17 Feb 2002 11:15:28 -0000	1.8
  @@ -23,7 +23,7 @@
   public interface ClassLoaderManager
       extends Component
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.ClassLoaderManager";
  +    String ROLE = ClassLoaderManager.class.getName();
   
       /**
        * Create a <code>ClassLoader</code> for a specific application.
  
  
  
  1.3       +8 -8      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ApplicationMBean.java
  
  Index: ApplicationMBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ApplicationMBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ApplicationMBean.java	11 Dec 2001 10:13:34 -0000	1.2
  +++ ApplicationMBean.java	17 Feb 2002 11:15:28 -0000	1.3
  @@ -8,14 +8,14 @@
   package org.apache.avalon.phoenix.interfaces;
   
   /**
  - * This is the interface via which you can manager 
  + * This is the interface via which you can manager
    * the root container of Applications.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    */
   public interface ApplicationMBean
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.ApplicationMBean";
  +    String ROLE = ApplicationMBean.class.getName();
   
       /**
        * Get the name of the application.
  @@ -46,7 +46,7 @@
       String getHomeDirectory();
   
       /**
  -     * Return true if the application is 
  +     * Return true if the application is
        * running or false otherwise.
        *
        * @return true if application is running, false otherwise
  @@ -63,14 +63,14 @@
        *            the message part of exception will contain more information
        *            pertaining to why the application failed to startup
        */
  -    void start() 
  +    void start()
           throws IllegalStateException, ApplicationException;
   
       /**
        * Shutdown and restart the application running.
        * This is only valid when isRunning() returns true,
        * otherwise it will generate an IllegalStateException.
  -     * This is equivelent to  calling start() and then stop() 
  +     * This is equivelent to  calling start() and then stop()
        * in succession.
        *
        * @exception IllegalStateException if application is not already running
  @@ -78,7 +78,7 @@
        *            the message part of exception will contain more information
        *            pertaining to why the application failed to startup/shutdown
        */
  -    void restart() 
  +    void restart()
           throws IllegalStateException, ApplicationException;
   
       /**
  @@ -91,7 +91,7 @@
        *            the message part of exception will contain more information
        *            pertaining to why the application failed to shutodwn
        */
  -    void stop() 
  +    void stop()
           throws IllegalStateException, ApplicationException;
   
       /**
  @@ -104,6 +104,6 @@
        *            the message part of exception will contain more information
        *            pertaining to why the application failed to undeploy
        */
  -    void undeploy() 
  +    void undeploy()
           throws IllegalStateException, ApplicationException;
   }
  
  
  
  1.6       +2 -2      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ApplicationContext.java
  
  Index: ApplicationContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/ApplicationContext.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ApplicationContext.java	12 Jan 2002 02:10:22 -0000	1.5
  +++ ApplicationContext.java	17 Feb 2002 11:15:28 -0000	1.6
  @@ -23,7 +23,7 @@
   public interface ApplicationContext
       extends Component
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.ApplicationContext";
  +    String ROLE = ApplicationContext.class.getName();
   
       SarMetaData getMetaData();
   
  @@ -31,7 +31,7 @@
   
       /**
        * Export specified object into management system.
  -     * The object is exported using specifed interface 
  +     * The object is exported using specifed interface
        * and using the specified name.
        *
        * @param name the name of object to export
  
  
  
  1.6       +1 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/Application.java
  
  Index: Application.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/interfaces/Application.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Application.java	12 Jan 2002 02:13:15 -0000	1.5
  +++ Application.java	17 Feb 2002 11:15:28 -0000	1.6
  @@ -26,7 +26,7 @@
   public interface Application
       extends Component, Initializable, Startable, Disposable
   {
  -    String ROLE = "org.apache.avalon.phoenix.interfaces.Application";
  +    String ROLE = Application.class.getName();
   
       void setApplicationContext( ApplicationContext context );
   
  
  
  

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