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-site/docs/excalibur/info sample.html
Date Wed, 13 Nov 2002 05:24:56 GMT
donaldp     2002/11/12 21:24:56

  Modified:    docs/excalibur/info sample.html
  Log:
  Update the sample html again.
  
  Revision  Changes    Path
  1.2       +48 -2     jakarta-avalon-site/docs/excalibur/info/sample.html
  
  Index: sample.html
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-site/docs/excalibur/info/sample.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sample.html	13 Nov 2002 04:02:31 -0000	1.1
  +++ sample.html	13 Nov 2002 05:24:55 -0000	1.2
  @@ -111,20 +111,66 @@
           <logger name="auth"/>
       </loggers>
   
  +    <!--
  +      The context section defines what type of context is passed to the
  +      Component in the Contextualize stage and what entrys appear in that
  +      context. The context specified below does not specify a type in
  +      context element so we assume that the context type is
  +
  +      org.apache.avalon.framework.context.Context
  +    -->
       <context>
  +        <!--
  +          This declares that there is a single entry in the context which
  +          is accessed via the key "component.classloader" and is of type
  +          "java.lang.ClassLoader".
  +        -->
           <entry key="component.classloader" type="java.lang.ClassLoader"/>
       </context>
   
  +    <!--
  +      The services section declares a set of services that the
  +      Component is capable of providing to other entities. A single
  +      service is provided by this component.
  +    -->
       <services>
           <service type="com.biz.Service1"/>
       </services>
   
  +    <!--
  +      The dependencies section declares dependencies on services
  +      provided by other components.
  +    -->
       <dependencies>
  +        <!--
  +          This declares a required service of type
  +          "com.biz.Service2". Could be accessed via something like
  +
  +          m_service2 = (Service2)manager.lookup( Service2.ROLE );
  +        -->
           <dependency type="com.biz.Service2"/>
  -        <dependency key="com.biz.Service1/Variation" type="com.biz.Service1"
  -            optional="true"/>
  +
  +        <!--
  +        This declares an optional service of type
  +        "com.biz.Service2" that is accessed using the key
  +        "com.biz.Service1/Variation". Could be accessed via
  +        something like
  +
  +        if( manager.hasService( Service2.ROLE ) )
  +        {
  +          m_service2 = (Service2)manager.lookup( Service2.ROLE + "/Variation"
);
  +        }
  +        -->
  +        <dependency key="com.biz.Service1/Variation"
  +                    type="com.biz.Service1"
  +                    optional="true"/>
       </dependencies>
   
  +    <!--
  +      This declares the schema which the configuration will be validated
  +      against. Note that this declaration does not define the type of the
  +      schema so the type is guessed by the unerlying validator.
  +    -->
       <schema category="configuration" location="MyComponent-schema.xml"/>
   
   &lt;/component-info&gt;</pre>
  
  
  

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