avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/instrument/example/managerICM/src/java/org/apache/excalibur/instrument/example_icm Main.java
Date Mon, 05 Aug 2002 11:56:21 GMT
leif        2002/08/05 04:56:21

  Modified:    instrument/example/managerICM/src/java/org/apache/excalibur/instrument/example_icm
                        Main.java
  Log:
  Make the example code easier to follow.
  
  Revision  Changes    Path
  1.4       +15 -13    jakarta-avalon-excalibur/instrument/example/managerICM/src/java/org/apache/excalibur/instrument/example_icm/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/instrument/example/managerICM/src/java/org/apache/excalibur/instrument/example_icm/Main.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Main.java	4 Aug 2002 11:04:24 -0000	1.3
  +++ Main.java	5 Aug 2002 11:56:21 -0000	1.4
  @@ -85,11 +85,12 @@
           logManager.configure( logKitConfig );
   
           // Set up the Instrument Manager
  -        m_instrumentManager = new DefaultInstrumentManager();
  -        m_instrumentManager.enableLogging(
  +        DefaultInstrumentManager instrumentManager = new DefaultInstrumentManager();
  +        instrumentManager.enableLogging(
               logManager.getLoggerForCategory( instrumentConfig.getAttribute( "logger", "im"
) ) );
  -        m_instrumentManager.configure( instrumentConfig );
  -        m_instrumentManager.initialize();
  +        instrumentManager.configure( instrumentConfig );
  +        instrumentManager.initialize();
  +        m_instrumentManager = instrumentManager;
   
           // Setup the RoleManager
           DefaultRoleManager roleManager = new DefaultRoleManager();
  @@ -98,15 +99,16 @@
           roleManager.configure( rolesConfig );
   
           // Set up the ComponentManager
  -        m_componentManager = new InstrumentComponentManager();
  -        m_componentManager.enableLogging(
  +        InstrumentComponentManager componentManager = new InstrumentComponentManager();
  +        componentManager.enableLogging(
               logManager.getLoggerForCategory( componentsConfig.getAttribute( "logger", "cm"
) ) );
  -        m_componentManager.setLoggerManager( logManager );
  -        m_componentManager.contextualize( context );
  -        m_componentManager.setInstrumentManager( m_instrumentManager );
  -        m_componentManager.setRoleManager( roleManager );
  -        m_componentManager.configure( componentsConfig );
  -        m_componentManager.initialize();
  +        componentManager.setLoggerManager( logManager );
  +        componentManager.contextualize( context );
  +        componentManager.setInstrumentManager( m_instrumentManager );
  +        componentManager.setRoleManager( roleManager );
  +        componentManager.configure( componentsConfig );
  +        componentManager.initialize();
  +        m_componentManager = componentManager;
       }
   
       /*---------------------------------------------------------------
  
  
  

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