donaldp 01/04/24 02:54:49
Modified: src/java/org/apache/phoenix/engine/facilities/application
DefaultApplicationManager.java
Log:
Retrieve SystemManager from component and application name.
This is in preparation for having ApplicationManager export manageable components in
context of SystemManager.
Revision Changes Path
1.3 +23 -1
jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/facilities/application/DefaultApplicationManager.java
Index: DefaultApplicationManager.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/phoenix/engine/facilities/application/DefaultApplicationManager.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DefaultApplicationManager.java 2001/04/24 09:08:01 1.2
+++ DefaultApplicationManager.java 2001/04/24 09:54:48 1.3
@@ -7,6 +7,13 @@
*/
package org.apache.phoenix.engine.facilities.application;
+import org.apache.avalon.atlantis.SystemManager;
+import org.apache.avalon.component.ComponentException;
+import org.apache.avalon.component.ComponentManager;
+import org.apache.avalon.component.Composable;
+import org.apache.avalon.context.Context;
+import org.apache.avalon.context.ContextException;
+import org.apache.avalon.context.Contextualizable;
import org.apache.phoenix.engine.facilities.ApplicationManager;
/**
@@ -17,6 +24,21 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
*/
public class DefaultApplicationManager
- implements ApplicationManager
+ implements ApplicationManager, Contextualizable, Composable
{
+ private SystemManager m_systemManager;
+ private String m_name;
+
+ public void contextualize( final Context context )
+ throws ContextException
+ {
+ m_name = (String)context.get( "name" );
+ }
+
+ public void compose( final ComponentManager componentManager )
+ throws ComponentException
+ {
+ m_systemManager = (SystemManager)componentManager.
+ lookup( "org.apache.avalon.atlantis.SystemManager" );
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]