colus 2002/10/18 23:45:41 Modified: src/java/org/apache/avalon/phoenix/components/manager MBeanScripter.java Log: comment & wrap long line. Revision Changes Path 1.2 +16 -5 jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MBeanScripter.java Index: MBeanScripter.java =================================================================== RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/MBeanScripter.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- MBeanScripter.java 7 Sep 2002 04:04:54 -0000 1.1 +++ MBeanScripter.java 19 Oct 2002 06:45:41 -0000 1.2 @@ -49,6 +49,9 @@ return m_objectName; } + /** + * Create MBean and invoke startup operations. + */ public void startup() throws Exception { @@ -60,6 +63,9 @@ invokeStartupOperations(); } + /** + * Invoke shutdown operations. + */ public void shutdown() throws Exception { @@ -69,7 +75,8 @@ private void setAttributes() throws Exception { - final Configuration[] attributes = m_configuration.getChildren( "attribute" ); + final Configuration[] attributes = + m_configuration.getChildren( "attribute" ); for ( int i = 0; i < attributes.length; i++ ) { setAttribute( attributes[ i ] ); @@ -87,7 +94,8 @@ final Class valueClass = Class.forName( type ); value = c_valueConverter.convert( valueClass, value, null ); } - m_mBeanServer.setAttribute( getObjectName(), new Attribute( name, value ) ); + m_mBeanServer.setAttribute( getObjectName(), + new Attribute( name, value ) ); } private void setUses() @@ -105,20 +113,23 @@ { final String name = use.getAttribute( "name" ); final String value = use.getValue(); - m_mBeanServer.setAttribute( getObjectName(), new Attribute( name, new ObjectName( value ) ) ); + final Attribute ref = new Attribute( name, new ObjectName( value ) ); + m_mBeanServer.setAttribute( getObjectName(), ref ); } private void invokeStartupOperations() throws Exception { - final Configuration[] invokes = m_configuration.getChild( "startup", true ).getChildren( "invoke" ); + final Configuration[] invokes = + m_configuration.getChild( "startup", true ).getChildren( "invoke" ); invokeOperations( invokes ); } private void invokeShutdownOperations() throws Exception { - final Configuration[] invokes = m_configuration.getChild( "startup", true ).getChildren( "invoke" ); + final Configuration[] invokes = + m_configuration.getChild( "startup", true ).getChildren( "invoke" ); invokeOperations( invokes ); }
-- To unsubscribe, e-mail: <mailto:avalon-cvs-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:avalon-cvs-help@;jakarta.apache.org>