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/kernel/components Component1.java
Date Thu, 27 Jun 2002 07:14:11 GMT
donaldp     2002/06/27 00:14:11

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/kernel/components
                        Component1.java
  Log:
  Add some test metadata
  
  Revision  Changes    Path
  1.4       +22 -1     jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/kernel/components/Component1.java
  
  Index: Component1.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/kernel/components/Component1.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Component1.java	27 Jun 2002 04:51:05 -0000	1.3
  +++ Component1.java	27 Jun 2002 07:14:11 -0000	1.4
  @@ -14,14 +14,35 @@
   import org.apache.avalon.framework.service.Serviceable;
   import org.apache.avalon.framework.service.ServiceManager;
   import org.apache.avalon.framework.service.ServiceException;
  +import org.apache.avalon.framework.context.Contextualizable;
  +import org.apache.avalon.framework.context.Context;
  +import org.apache.avalon.framework.context.ContextException;
  +import java.lang.ClassLoader;
   
   /**
    * @avalon.component lifestyle="alternative" version="1.4"
    * @avalon.service interface="Service1" shareable="true"
    */
   public class Component1
  -    implements Service1, Configurable, Initializable, Serviceable
  +    implements Service1, Contextualizable, Serviceable, Configurable, Initializable
   {
  +    /**
  +     * @avalon.context type="Context" anAttribute="f"
  +     * @avalon.entry key="foo" type="ClassLoader"
  +     * @avalon.entry key="bar" type="java.lang.Integer" attribute1="meep meep!" isOptional="false"
  +     */
  +    public void contextualize( final Context context )
  +        throws ContextException
  +    {
  +        try
  +        {
  +            context.get( ClassLoader.class.getName() );
  +        }
  +        catch( ContextException e )
  +        {
  +        }
  +    }
  +
       /**
        * @avalon.dependency role="fred" interface="Service1" optional="true" shareable="true"
        */
  
  
  

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