avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/blocks DefaultBlockContext.java
Date Sun, 25 Feb 2001 12:28:08 GMT
donaldp     01/02/25 04:28:08

  Modified:    src/java/org/apache/phoenix/engine/blocks
                        DefaultBlockContext.java
  Log:
  Updated javadocs and added getBaseLogger() method.
  
  Revision  Changes    Path
  1.2       +21 -10    jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/blocks/DefaultBlockContext.java
  
  Index: DefaultBlockContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/blocks/DefaultBlockContext.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DefaultBlockContext.java	2001/02/24 04:31:00	1.1
  +++ DefaultBlockContext.java	2001/02/25 12:28:08	1.2
  @@ -25,15 +25,19 @@
       implements BlockContext
   {
       protected ThreadManager  m_threadManager;
  +    protected Logger         m_baseLogger;
   
  -    public DefaultBlockContext( final ThreadManager threadManager )
  +    public DefaultBlockContext( final Logger logger, final ThreadManager threadManager
)
       {
  -        m_threadManager = threadManager;
  +        this( logger, threadManager, null );
       }
   
  -    public DefaultBlockContext( final ThreadManager threadManager, final Context context
)
  +    public DefaultBlockContext( final Logger logger, 
  +                                final ThreadManager threadManager, 
  +                                final Context context )
       {
           super( context );
  +        m_baseLogger = logger;
           m_threadManager = threadManager;
       }
   
  @@ -71,15 +75,22 @@
       }
   
       /**
  -     * Retrieve thread manager by category.
  -     * ThreadManagers are given names so that you can manage different thread 
  -     * count to different components.
  -     *
  -     * @param category the category
  -     * @return the ThreadManager
  +     * Retrieve the default thread pool.
  +     * Equivelent to getThreadPool( "default" );
  +     * @return the ThreadPool
        */
       public ThreadPool getDefaultThreadPool()
  +    {
  +        return getThreadPool( "default" );
  +    }
  +
  +    /**
  +     * Retrieve logger coresponding to root category of application.
  +     *
  +     * @return the base logger
  +     */
  +    public Logger getBaseLogger()
       {
  -        return m_threadManager.getThreadPool( "default" );
  +        return m_baseLogger;
       }
   }
  
  
  

Mime
View raw message