You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by bl...@apache.org on 2002/01/17 21:57:44 UTC
cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/system Container.java ContainerManager.java
bloritsch 02/01/17 12:57:44
Modified: . build.xml
Added: src/scratchpad/org/apache/avalon/excalibur/system
Container.java ContainerManager.java
Log:
Add new LoggerManager abstraction with an adapted implementation of LogKitManager and a Log4JLoggerManager. Also added initial interface for Containers
Revision Changes Path
1.87 +5 -0 jakarta-avalon-excalibur/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/build.xml,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -r1.86 -r1.87
--- build.xml 29 Dec 2001 22:07:25 -0000 1.86
+++ build.xml 17 Jan 2002 20:57:43 -0000 1.87
@@ -152,6 +152,9 @@
<!-- Checks the environment for existing resources -->
<target name="check-environment">
+ <available property="log4j.present" classname="org.apache.log4j.Category">
+ <classpath refid="project.class.path"/>
+ </available>
<available property="xpath.present" classname="org.apache.xpath.XPathAPI">
<classpath refid="project.class.path"/>
</available>
@@ -247,6 +250,8 @@
<classpath refid="project.class.path" />
<src path="${test.dir}"/>
<src path="${build.src}"/>
+ <exclude name="**/Log4J*"
+ unless="log4j.present"/>
<exclude name="org/apache/avalon/excalibur/datasource/J2eeDataSource.java"
unless="j2ee.present"/>
<exclude name="org/apache/avalon/excalibur/datasource/InformixDataSource.java"
1.1 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/system/Container.java
Index: Container.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.excalibur.system;
import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.component.ComponentManager;
/**
* The Container is a base class that can be used to manage your system. It
* exposes a protected getComponentManager() method so that the Container's
* Manager can expose that to the instantiating class.
*
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
*/
public class Container
{
public Container( Context initialContext )
{
}
protected ComponentManager getComponentManager()
{
return null;
}
}
1.1 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/system/ContainerManager.java
Index: ContainerManager.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.avalon.excalibur.system;
import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.component.Component;
import org.apache.avalon.framework.component.ComponentManager;
import org.apache.avalon.excalibur.logger.LoggerManager;
import org.apache.avalon.excalibur.logger.LogKitLoggerManager;
/**
* The ContainerManager is a single point of contact to manage your Container
* resources. It takes care of creating the other managers that a Container
* needs to use, as well as initializing the Container. It is designed to be
* directly instantiated by whatever class needs to initialize your system.
*
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
*/
public class ContainerManager
{
LoggerManager m_logManager;
public ContainerManager( Context initialContext )
{
}
Container getContainer()
{
return null;
}
LoggerManager getLoggerManager()
{
return null;
}
ComponentManager getComponentManager()
{
return null;
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>