You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by pr...@apache.org on 2002/06/28 07:09:05 UTC

cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/metainfo BlockInfo.java

proyal      2002/06/27 22:09:05

  Modified:    src/java/org/apache/avalon/phoenix/metainfo BlockInfo.java
  Log:
  Add configuration schema data member and accessor
  
  Revision  Changes    Path
  1.12      +18 -2     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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- BlockInfo.java	24 Mar 2002 12:17:19 -0000	1.11
  +++ BlockInfo.java	28 Jun 2002 05:09:04 -0000	1.12
  @@ -7,18 +7,22 @@
    */
   package org.apache.avalon.phoenix.metainfo;
   
  +import org.apache.avalon.framework.configuration.Configuration;
  +
   /**
    * 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).
  + * block (if any), the configuration schema this block needs (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>
    */
   public class BlockInfo
   {
       private final BlockDescriptor m_descriptor;
  +    private final Configuration m_configurationSchema;
       private final ServiceDescriptor[] m_services;
       private final ServiceDescriptor[] m_managementAccessPoints;
       private final DependencyDescriptor[] m_dependencies;
  @@ -27,11 +31,13 @@
        * Basic constructor that takes as parameters all parts.
        */
       public BlockInfo( final BlockDescriptor descriptor,
  +                      final Configuration configurationSchema,
                         final ServiceDescriptor[] services,
                         final ServiceDescriptor[] managementAccessPoints,
                         final DependencyDescriptor[] dependencies )
       {
           m_descriptor = descriptor;
  +        m_configurationSchema = configurationSchema;
           m_services = services;
           m_managementAccessPoints = managementAccessPoints;
           m_dependencies = dependencies;
  @@ -47,6 +53,16 @@
       public BlockDescriptor getBlockDescriptor()
       {
           return m_descriptor;
  +    }
  +
  +    /**
  +     * Return configuration schema for this block, if one exists.
  +     *
  +     * @return the schema, or null
  +     */
  +    public Configuration getConfigurationSchema()
  +    {
  +        return m_configurationSchema;
       }
   
       /**
  
  
  

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