jvanzyl 01/06/27 16:31:31
Modified: src/java/org/apache/turbine/services ServiceBroker.java
Log:
- cleaning out some cruft and adding javadoc
Revision Changes Path
1.13 +42 -10
jakarta-turbine/src/java/org/apache/turbine/services/ServiceBroker.java
Index: ServiceBroker.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine/src/java/org/apache/turbine/services/ServiceBroker.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ServiceBroker.java 2001/06/25 06:12:42 1.12
+++ ServiceBroker.java 2001/06/27 23:31:29 1.13
@@ -80,7 +80,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Rafal Krzewski</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel Rall</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
- * @version $Id: ServiceBroker.java,v 1.12 2001/06/25 06:12:42 jvanzyl Exp $
+ * @version $Id: ServiceBroker.java,v 1.13 2001/06/27 23:31:29 jvanzyl Exp $
*/
public interface ServiceBroker
{
@@ -133,13 +133,6 @@
throws InitializationException;
/**
- * Performs early initialization of all services.
- *
- * @param data An Object to use for initialization activities.
- */
- //public void initServices( Object data );
-
- /**
* Shutdowns a Service.
*
* This method is used to release resources allocated by a
@@ -157,7 +150,6 @@
*/
public void shutdownServices( );
-
/**
* Returns an instance of requested Service.
*
@@ -175,6 +167,7 @@
*
* @param name The name of the service.
* @return Properties of requested Service.
+ * @deprecated use getConfiguration()
*/
public Properties getProperties( String name );
@@ -187,10 +180,49 @@
*/
public Configuration getConfiguration( String name );
+ /**
+ * Set an object for use in the services.
+ *
+ * @param String key
+ * @param String value
+ */
public void setServiceObject(String key, Object value);
- public Object getServiceObject(String name);
+
+ /**
+ * Get service object
+ *
+ * @param String key
+ * @return Object value
+ */
+ public Object getServiceObject(String key);
+
+ /**
+ * Return a path translated to the application root.
+ *
+ * @param String path
+ * @return String translated path
+ */
public String getRealPath(String path);
+
+ /**
+ * Get the application root.
+ *
+ * @return String application root
+ */
public String getApplicationRoot();
+
+ /**
+ * Get default log4j category.
+ *
+ * @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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]