avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/metainfo BlockInfo.java
Date Sat, 12 Jan 2002 02:08:02 GMT
donaldp     02/01/11 18:08:01

  Modified:    src/java/org/apache/avalon/phoenix/tools/infobuilder
                        BlockInfoBuilder.java
               src/java/org/apache/avalon/phoenix/metainfo BlockInfo.java
  Log:
  Make it possible for infos to also parse management services from descriptor.
  
  Revision  Changes    Path
  1.7       +4 -1      jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder/BlockInfoBuilder.java
  
  Index: BlockInfoBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/tools/infobuilder/BlockInfoBuilder.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- BlockInfoBuilder.java	11 Dec 2001 10:13:35 -0000	1.6
  +++ BlockInfoBuilder.java	12 Jan 2002 02:08:01 -0000	1.7
  @@ -55,6 +55,9 @@
           configuration = info.getChild( "services" );
           final ServiceDescriptor[] services = buildServices( configuration );
   
  +        configuration = info.getChild( "management" );
  +        final ServiceDescriptor[] management = buildServices( configuration );
  +
           configuration = info.getChild( "dependencies" );
           final DependencyDescriptor[] dependencies = buildDependencies( classname, configuration
);
   
  @@ -70,7 +73,7 @@
               getLogger().debug( message );
           }
   
  -        return new BlockInfo( descriptor, services, dependencies );
  +        return new BlockInfo( descriptor, services, management, dependencies );
       }
   
       /**
  
  
  
  1.8       +20 -3     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/metainfo/BlockInfo.java
  
  Index: BlockInfo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/metainfo/BlockInfo.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- BlockInfo.java	11 Dec 2001 10:13:35 -0000	1.7
  +++ BlockInfo.java	12 Jan 2002 02:08:01 -0000	1.8
  @@ -10,7 +10,11 @@
   import org.apache.avalon.excalibur.container.Info;
   
   /**
  - * This descrbes information about the block that is used by administration tools and kernel.
  + * This class contains meta-information of use to administative 
  + * tools and the kernel. It describes the services offered by a type
  + * of block, the dependencies of the block, the management interface of 
  + * block (if any) and also contains information useful to presenting 
  + * information in administative screens (like human readable names etc).
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
    */
  @@ -19,6 +23,7 @@
   {
       private final BlockDescriptor m_descriptor;
       private final ServiceDescriptor[] m_services;
  +    private final ServiceDescriptor[] m_management;
       private final DependencyDescriptor[] m_dependencies;
   
       /**
  @@ -26,10 +31,12 @@
        */
       public BlockInfo( final BlockDescriptor descriptor,
                         final ServiceDescriptor[] services,
  +                      final ServiceDescriptor[] management,
                         final DependencyDescriptor[] dependencies )
       {
           m_descriptor = descriptor;
           m_services = services;
  +        m_management = management;
           m_dependencies = dependencies;
       }
   
  @@ -48,7 +55,7 @@
       /**
        * This returns a list of Services that this block exports.
        *
  -     * @return an array of Services (can be null)
  +     * @return an array of Services
        */
       public ServiceDescriptor[] getServices()
       {
  @@ -56,9 +63,19 @@
       }
   
       /**
  +     * This returns a list of Services that this block can be Managed by.
  +     *
  +     * @return an array of Management Services
  +     */
  +    public ServiceDescriptor[] getManagement()
  +    {
  +        return m_management;
  +    }
  +
  +    /**
        * Return an array of Service dependencies that this Block depends upon.
        *
  -     * @return an array of Service dependencies (may be null)
  +     * @return an array of Service dependencies
        */
       public DependencyDescriptor[] getDependencies()
       {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message