avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject cvs commit: avalon-sandbox/magic/impl/src/java/org/apache/avalon/magic/impl Avalon2PicoAdapter.java
Date Thu, 21 Aug 2003 21:34:09 GMT
leosimons    2003/08/21 14:34:09

  Modified:    magic/impl/src/java/org/apache/avalon/magic/impl
                        Avalon2PicoAdapter.java
  Log:
  done. Ugly beastie though :D
  
  Revision  Changes    Path
  1.6       +13 -4     avalon-sandbox/magic/impl/src/java/org/apache/avalon/magic/impl/Avalon2PicoAdapter.java
  
  Index: Avalon2PicoAdapter.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/magic/impl/src/java/org/apache/avalon/magic/impl/Avalon2PicoAdapter.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Avalon2PicoAdapter.java	21 Aug 2003 21:30:40 -0000	1.5
  +++ Avalon2PicoAdapter.java	21 Aug 2003 21:34:09 -0000	1.6
  @@ -81,14 +81,23 @@
   
   /**
    * An InvocationHandler that intercepts calls to the avalon-framework
  - * lifecycle methods and saves their arguments for later use. During
  - * initialize, an instance is created with the constructor arguments
  + * lifecycle methods and saves their arguments for later use in calling
  + * a pico-style constructor with the provided lifecycle material. During
  + * initialize(), the instance is created with the constructor arguments
    * populated from stuff retrieved from the avalon-framework lifecycle
    * arguments.
    *
  + * There is a slight difference in semantics between Pico and this
  + * adapter in the way the appropriate constructor is selected. Rather
  + * than require there is only one constructor, this implementation
  + * searches for the constructor with the highest number of arguments.
  + * You can customize this behaviour through modification of the
  + * sortConstructors() method.
  + *
    * Usage:
    *
    * <pre>
  + * // a regular pico-style component
    * public class MyComponentImpl implements MyComponent
    * {
    *      Logger m_logger;
  @@ -112,7 +121,7 @@
    * MyComponent comp = (MyComponent)
    *          AvalonInvocationHandler.getProxy( MyComponentImpl.class );
    *
  - * // the container will set up your logger, configuration and
  + * // the container should properly set up your logger, configuration and
    * // all other dependencies for you
    * myAvalonContainer.add( comp );
    *
  
  
  

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


Mime
View raw message