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-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo ComponentInfo.java
Date Sun, 09 Jun 2002 01:34:59 GMT
donaldp     2002/06/08 18:34:59

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/metainfo
                        ComponentInfo.java
  Log:
  Add context descriptor
  
  Revision  Changes    Path
  1.9       +18 -5     jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentInfo.java
  
  Index: ComponentInfo.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentInfo.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ComponentInfo.java	9 Jun 2002 01:20:18 -0000	1.8
  +++ ComponentInfo.java	9 Jun 2002 01:34:59 -0000	1.9
  @@ -14,17 +14,19 @@
    * <ul>
    *   <li>Human presentable meta data such as name, version, description etc
    *   useful when assembling the system.</li>
  + *   <li>the context object capabilities that this component requires</li>
    *   <li>the services that this component type is capable of providing</li>
    *   <li>the services that this component type requires to operate (and the
    *   names via which services are accessed)</li>
    * </ul>
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.8 $ $Date: 2002/06/09 01:20:18 $
  + * @version $Revision: 1.9 $ $Date: 2002/06/09 01:34:59 $
    */
   public class ComponentInfo
   {
       private final ComponentDescriptor m_descriptor;
  +    private final ContextDescriptor m_context;
       private final ServiceDescriptor[] m_services;
       private final DependencyDescriptor[] m_dependencies;
   
  @@ -32,24 +34,35 @@
        * Basic constructor that takes as parameters all parts.
        */
       public ComponentInfo( final ComponentDescriptor descriptor,
  +                          final ContextDescriptor context,
                             final ServiceDescriptor[] services,
                             final DependencyDescriptor[] dependencies )
       {
           m_descriptor = descriptor;
  +        m_context = context;
           m_services = services;
           m_dependencies = dependencies;
       }
   
       /**
  -     * Return meta information that is generallly only required by administration tools.
  +     * Return the Component descriptor.
        *
  -     * It should be loaded on demand and not always present in memory.
  -     *
  -     * @return the ComponentDescriptor
  +     * @return the Component descriptor.
        */
       public ComponentDescriptor getComponentDescriptor()
       {
           return m_descriptor;
  +    }
  +
  +    /**
  +     * Return the ContextDescriptor for Component, may be null.
  +     * If null then this component does not implement Contextualizable.
  +     *
  +     * @return the ContextDescriptor for Component, may be null.
  +     */
  +    public ContextDescriptor getContextDescriptor()
  +    {
  +        return m_context;
       }
   
       /**
  
  
  

--
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