donaldp 2002/07/31 21:31:08
Modified: src/java/org/apache/avalon/phoenix/components/manager
MX4JSystemManager.java
Log:
Move contextualize/configure before initialize in class
Revision Changes Path
1.15 +20 -20
jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MX4JSystemManager.java
Index: MX4JSystemManager.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MX4JSystemManager.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- MX4JSystemManager.java 1 Aug 2002 04:06:00 -0000 1.14
+++ MX4JSystemManager.java 1 Aug 2002 04:31:08 -0000 1.15
@@ -39,6 +39,26 @@
private File m_homeDir;
private String m_stylesheetDir;
+ public void contextualize( Context context )
+ throws ContextException
+ {
+ m_homeDir = (File)context.get( "phoenix.home" );
+ }
+
+ public void configure( final Configuration configuration )
+ throws ConfigurationException
+ {
+ m_port = configuration.getChild( "manager-adaptor-port" ).
+ getValueAsInteger( DEFAULT_HTTPADAPTER_PORT );
+ m_rmi = configuration.getChild( "enable-rmi-adaptor" ).getValueAsBoolean(
false );
+ final String stylesheets =
+ configuration.getChild( "stylesheets-dir" ).getValue( null );
+ if( null != stylesheets )
+ {
+ m_stylesheetDir = new File( m_homeDir, stylesheets ).getAbsolutePath();
+ }
+ }
+
public void initialize()
throws Exception
{
@@ -103,26 +123,6 @@
mbean.setJNDIName( jndiName );
// Register the JRMP adaptor in JNDI and start it
mbean.start();
- }
-
- public void contextualize( Context context )
- throws ContextException
- {
- m_homeDir = (File)context.get( "phoenix.home" );
- }
-
- public void configure( final Configuration configuration )
- throws ConfigurationException
- {
- m_port = configuration.getChild( "manager-adaptor-port" ).
- getValueAsInteger( DEFAULT_HTTPADAPTER_PORT );
- m_rmi = configuration.getChild( "enable-rmi-adaptor" ).getValueAsBoolean(
false );
- final String stylesheets =
- configuration.getChild( "stylesheets-dir" ).getValue( null );
- if( null != stylesheets )
- {
- m_stylesheetDir = new File( m_homeDir, stylesheets ).getAbsolutePath();
- }
}
protected MBeanServer createMBeanServer()
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>