You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by sg...@apache.org on 2005/05/19 10:50:08 UTC
cvs commit: jakarta-turbine-2/src/java/org/apache/turbine/services/avaloncomponent AvalonComponentService.java
sgoeschl 2005/05/19 01:50:08
Modified: src/java/org/apache/turbine/services/avaloncomponent
AvalonComponentService.java
Log:
Extends the Avalon ServiceManager interface and got rid of deprecated Component interface.
Revision Changes Path
1.11 +3 -25 jakarta-turbine-2/src/java/org/apache/turbine/services/avaloncomponent/AvalonComponentService.java
Index: AvalonComponentService.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/services/avaloncomponent/AvalonComponentService.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- AvalonComponentService.java 6 Dec 2004 17:47:12 -0000 1.10
+++ AvalonComponentService.java 19 May 2005 08:50:08 -0000 1.11
@@ -1,6 +1,5 @@
package org.apache.turbine.services.avaloncomponent;
-
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
@@ -17,10 +16,7 @@
* limitations under the License.
*/
-
-import org.apache.avalon.framework.component.Component;
-import org.apache.avalon.framework.component.ComponentException;
-
+import org.apache.avalon.framework.service.ServiceManager;
import org.apache.turbine.services.Service;
/**
@@ -31,7 +27,7 @@
* @version $Id$
*/
public interface AvalonComponentService
- extends Service
+ extends Service, ServiceManager
{
/** The publically visible name of the service */
String SERVICE_NAME = "AvalonComponentService";
@@ -56,22 +52,4 @@
/** Key used in the context for defining the application root */
String COMPONENT_APP_ROOT = "componentAppRoot";
-
- /**
- * Returns an instance of the named component
- *
- * @param roleName Name of the role the component fills.
- * @return an instance of the named component
- * @throws ComponentException generic exception
- */
- Component lookup(String roleName)
- throws ComponentException;
-
- /**
- * Releases the component
- *
- * @param component the component to release
- */
- void release(Component component);
-
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org