You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jv...@apache.org on 2001/08/31 10:00:28 UTC
cvs commit: jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum BaseService.java BaseServiceBroker.java Service.java ServiceBroker.java ServiceManager.java Log.java
jvanzyl 01/08/31 01:00:28
Modified: src/core/java/org/apache/fulcrum BaseService.java
BaseServiceBroker.java Service.java
ServiceBroker.java ServiceManager.java
Removed: src/core/java/org/apache/fulcrum Log.java
Log:
- no longer need the Log wrapper and all the methods required to
support it.
Revision Changes Path
1.8 +1 -9 jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/BaseService.java
Index: BaseService.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/BaseService.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- BaseService.java 2001/08/15 21:19:31 1.7
+++ BaseService.java 2001/08/31 08:00:28 1.8
@@ -68,7 +68,7 @@
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
* @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
* @author <a href="mailto:leonardr@segfault.org">Leonard Richardson</a>
- * @version $Id: BaseService.java,v 1.7 2001/08/15 21:19:31 dlr Exp $
+ * @version $Id: BaseService.java,v 1.8 2001/08/31 08:00:28 jvanzyl Exp $
*/
public abstract class BaseService
implements Service
@@ -250,13 +250,5 @@
public Category getCategory()
{
return getServiceBroker().getCategory();
- }
-
- /**
- * @see org.apache.fulcrum.Service#getCategory(String name)
- */
- public Category getCategory(String name)
- {
- return getServiceBroker().getCategory(name);
}
}
1.6 +6 -41 jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/BaseServiceBroker.java
Index: BaseServiceBroker.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/BaseServiceBroker.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BaseServiceBroker.java 2001/08/15 21:19:31 1.5
+++ BaseServiceBroker.java 2001/08/31 08:00:28 1.6
@@ -92,7 +92,7 @@
* @author <a href="mailto:krzewski@e-point.pl">Rafal Krzewski</a>
* @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
- * @version $Id: BaseServiceBroker.java,v 1.5 2001/08/15 21:19:31 dlr Exp $
+ * @version $Id: BaseServiceBroker.java,v 1.6 2001/08/31 08:00:28 jvanzyl Exp $
*/
public abstract class BaseServiceBroker implements ServiceBroker
{
@@ -149,10 +149,8 @@
* has provided for logging. If a Category is not set
* than all messages are sent to stout.
*/
- protected Category category;
+ protected Category category = Category.getInstance(getClass().getName());
- protected Hashtable categoryTable;
-
/**
* Application root path as set by the
* parent application.
@@ -191,20 +189,11 @@
return configuration;
}
- /**
- * Set the log4j Category that will be used for
- * logging.
- *
- * @param Category
- */
- public void setCategory(Category category)
- {
- this.category = category;
- loggingEnabled = true;
- }
-
/**
- * Get the log4j Category used for logging.
+ * Get the log4j Category used for logging. Used now
+ * internally by services that have yet to implement the
+ * Category c = Category.getInstance(getClass().getName());
+ * methodology.
*
* @return Category
*/
@@ -214,27 +203,6 @@
}
/**
- * Get a log4j Category by name.
- *
- * @param name log4j category to return
- * @return Category log4j category
- */
- public Category getCategory(String name)
- {
- return Category.getInstance(name);
- }
-
- public void setCategoryTable(Hashtable categoryTable)
- {
- this.categoryTable = categoryTable;
- }
-
- public Hashtable getCategoryTable()
- {
- return categoryTable;
- }
-
- /**
* Initialize this service manager.
*/
public void init()
@@ -253,9 +221,6 @@
// Create the mapping between service names
// and their classes.
initMapping();
-
- Log.setCategory(getCategory());
- Log.setCategoryTable(getCategoryTable());
// Start services that have their 'earlyInit'
// property set to 'true'.
1.10 +1 -8 jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/Service.java
Index: Service.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/Service.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Service.java 2001/08/27 02:59:02 1.9
+++ Service.java 2001/08/31 08:00:28 1.10
@@ -68,7 +68,7 @@
* @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
* @author <a href="mailto:leonardr@collab.net">Leonard Richardson</a>
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
- * @version $Id: Service.java,v 1.9 2001/08/27 02:59:02 dlr Exp $
+ * @version $Id: Service.java,v 1.10 2001/08/31 08:00:28 jvanzyl Exp $
*/
public interface Service
{
@@ -167,13 +167,6 @@
* Gets the default logger for this service.
*/
public Category getCategory();
-
- /**
- * Gets the named logger.
- *
- * @param name The name of the logger.
- */
- public Category getCategory(String name);
/**
* Returns text describing the status of this Service instance.
1.4 +1 -11 jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/ServiceBroker.java
Index: ServiceBroker.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/ServiceBroker.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ServiceBroker.java 2001/08/15 21:19:31 1.3
+++ ServiceBroker.java 2001/08/31 08:00:28 1.4
@@ -81,7 +81,7 @@
* @author <a href="mailto:krzewski@e-point.pl">Rafal Krzewski</a>
* @author <a href="mailto:dlr@collab.net">Daniel Rall</a>
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
- * @version $Id: ServiceBroker.java,v 1.3 2001/08/15 21:19:31 dlr Exp $
+ * @version $Id: ServiceBroker.java,v 1.4 2001/08/31 08:00:28 jvanzyl Exp $
*/
public interface ServiceBroker
{
@@ -208,14 +208,4 @@
* @return Category default log4j category.
*/
public Category getCategory();
-
- /**
- * Get a log4j category by name.
- *
- * @param String name of category
- * @return Category named category
- */
- public Category getCategory(String name);
-
- public void setCategoryTable(Hashtable categoryTable);
}
1.5 +1 -9 jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/ServiceManager.java
Index: ServiceManager.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-fulcrum/src/core/java/org/apache/fulcrum/ServiceManager.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ServiceManager.java 2001/08/27 20:22:36 1.4
+++ ServiceManager.java 2001/08/31 08:00:28 1.5
@@ -66,7 +66,7 @@
* of the manager.
*
* @author <a href="mailto:ilkka.priha@simsoft.fi">Ilkka Priha</a>
- * @version $Id: ServiceManager.java,v 1.4 2001/08/27 20:22:36 dlr Exp $
+ * @version $Id: ServiceManager.java,v 1.5 2001/08/31 08:00:28 jvanzyl Exp $
*/
public interface ServiceManager
extends ServiceBroker
@@ -100,12 +100,4 @@
* @param String application root
*/
public void setApplicationRoot(String applicationRoot);
-
- /**
- * Set the log4j Category that will be used for
- * logging.
- *
- * @param Category
- */
- public void setCategory(Category category);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org