avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler ComponentFactory.java
Date Wed, 24 Apr 2002 18:31:57 GMT
proyal      02/04/24 11:31:57

  Modified:    fortress/src/java/org/apache/excalibur/fortress/handler
                        ComponentFactory.java
  Log:
   * Create CounterInstruments in constructor so getInstrumetableName() works
  
  Revision  Changes    Path
  1.10      +6 -7      jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/ComponentFactory.java
  
  Index: ComponentFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/handler/ComponentFactory.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ComponentFactory.java	13 Apr 2002 01:39:56 -0000	1.9
  +++ ComponentFactory.java	24 Apr 2002 18:31:57 -0000	1.10
  @@ -33,18 +33,14 @@
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:paul@luminas.co.uk">Paul Russell</a>
  - * @version CVS $Revision: 1.9 $ $Date: 2002/04/13 01:39:56 $
  + * @version CVS $Revision: 1.10 $ $Date: 2002/04/24 18:31:57 $
    * @since 4.0
    */
   public class ComponentFactory
       implements ObjectFactory, ThreadSafe, Instrumentable
   {
  -    private CounterInstrument m_newInstance = new CounterInstrument(
  -        "Create " + getInstrumentableName()
  -    );
  -    private CounterInstrument m_dispose = new CounterInstrument(
  -        "Destroy " + getInstrumentableName()
  -    );
  +    private CounterInstrument m_newInstance;
  +    private CounterInstrument m_dispose;
   
       /** The class which this <code>ComponentFactory</code>
        * should create.
  @@ -98,6 +94,9 @@
           m_roles = roles;
           m_logManager = logkit;
           m_logger = m_logManager.getLoggerForCategory( "system.factory" );
  +
  +        m_newInstance = new CounterInstrument( "Create " + getInstrumentableName() );
  +        m_dispose = new CounterInstrument( "Destroy " + getInstrumentableName() );
       }
   
       public Object newInstance()
  
  
  

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