CVS: jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle AlternativeLifecycle1Impl.java,1.5,1.6 Lifecycle1.java,1.2,1.3 Lifecycle1Impl.java,1.5,1.6 Lifecycle2Impl.java,1.4,1.5
Peter Donald <pdonald-yCVjj/[email protected]> Wed, 3 Dec 2003 04:45:02 -0600
| Newsgroups | gmane.comp.java.jcontainer.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jcontainer/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle In directory hogshead.codehaus.org:/tmp/cvs-serv21491/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle Modified Files: AlternativeLifecycle1Impl.java Lifecycle1.java Lifecycle1Impl.java Lifecycle2Impl.java Log Message: Styled codebase Index: AlternativeLifecycle1Impl.java =================================================================== RCS file: /cvsroot/jcontainer/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/AlternativeLifecycle1Impl.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- AlternativeLifecycle1Impl.java 16 Oct 2003 09:23:56 -0000 1.5 +++ AlternativeLifecycle1Impl.java 3 Dec 2003 10:44:28 -0000 1.6 @@ -87,14 +87,13 @@ package org.jcontainer.loom.demos.avalonlifecycle; /** - * A demo of the lifecycle methods. Mount the SAR fle contaning there blocks in Loom, go - * to the JMX console .. - * http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication + * A demo of the lifecycle methods. Mount the SAR fle contaning there blocks in + * Loom, go to the JMX console .. http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication * .. and try stopt/starting the blocks. * + * @author Paul Hammant <Paul_Hammant-/[email protected]> * @dna.component * @dna.service type="Lifecycle1" - * @author Paul Hammant <Paul_Hammant-/[email protected]> */ public class AlternativeLifecycle1Impl implements Lifecycle1 Index: Lifecycle1.java =================================================================== RCS file: /cvsroot/jcontainer/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/Lifecycle1.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Lifecycle1.java 17 Aug 2003 18:26:23 -0000 1.2 +++ Lifecycle1.java 3 Dec 2003 10:44:28 -0000 1.3 @@ -87,7 +87,7 @@ package org.jcontainer.loom.demos.avalonlifecycle; /** - * @author Paul Hammant <Paul_Hammant-/[email protected]> + * @author Paul Hammant <Paul_Hammant-/[email protected]> * @version 1.0 */ public interface Lifecycle1 Index: Lifecycle1Impl.java =================================================================== RCS file: /cvsroot/jcontainer/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/Lifecycle1Impl.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Lifecycle1Impl.java 16 Oct 2003 09:23:57 -0000 1.5 +++ Lifecycle1Impl.java 3 Dec 2003 10:44:28 -0000 1.6 @@ -102,17 +102,17 @@ import org.apache.avalon.framework.service.Serviceable; /** - * A demo of the lifecycle methods. Mount the SAR fle contaning there blocks in Loom, go - * to the JMX console .. - * http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication + * A demo of the lifecycle methods. Mount the SAR fle contaning there blocks in + * Loom, go to the JMX console .. http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication * .. and try stopt/starting the blocks. + * + * @author Paul Hammant <Paul_Hammant-/[email protected]> * @dna.component * @dna.service type="org.jcontainer.loom.demos.avalonlifecycle.Lifecycle1" - * @author Paul Hammant <Paul_Hammant-/[email protected]> */ public class Lifecycle1Impl implements LogEnabled, Startable, Initializable, Contextualizable, - Serviceable, Configurable, Disposable, Lifecycle1 + Serviceable, Configurable, Disposable, Lifecycle1 { public int myServiceMethod() { @@ -137,21 +137,24 @@ public void contextualize( Context context ) throws ContextException { - System.out.println( "Lifecycle1Impl.contextualize() called (things like base directory passed in here)." ); + System.out.println( + "Lifecycle1Impl.contextualize() called (things like base directory passed in here)." ); System.out.flush(); } public void service( ServiceManager serviceManager ) throws ServiceException { - System.out.println( "Lifecycle1Impl.service() called (lookup on other services possible now)." ); + System.out.println( + "Lifecycle1Impl.service() called (lookup on other services possible now)." ); System.out.flush(); } public void configure( Configuration configuration ) throws ConfigurationException { - System.out.println( "Lifecycle1Impl.configure() called (configuration from config.xml passed here)." ); + System.out.println( + "Lifecycle1Impl.configure() called (configuration from config.xml passed here)." ); System.out.flush(); } Index: Lifecycle2Impl.java =================================================================== RCS file: /cvsroot/jcontainer/jcontainer/loom/demos/avalonlifecycle/src/java/org/jcontainer/loom/demos/avalonlifecycle/Lifecycle2Impl.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Lifecycle2Impl.java 16 Oct 2003 09:23:57 -0000 1.4 +++ Lifecycle2Impl.java 3 Dec 2003 10:44:28 -0000 1.5 @@ -102,17 +102,17 @@ import org.apache.avalon.framework.service.Serviceable; /** - * A demo of the lifecycle methods. Mount the SAR fle contaning there blocks in Loom, go - * to the JMX console .. - * http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication + * A demo of the lifecycle methods. Mount the SAR fle contaning there blocks in + * Loom, go to the JMX console .. http://localhost:8082/mbean?objectname=Loom%3Aapplication%3Ddemo-avalonlifecycle%2Ctopic%3DApplication * .. and try stopt/starting the blocks. - * @dna.component - * @author Paul Hammant <Paul_Hammant-/[email protected]> + * + * @author Paul Hammant <Paul_Hammant-/[email protected]> * @version 1.0 + * @dna.component */ public class Lifecycle2Impl implements LogEnabled, Startable, Initializable, Contextualizable, - Serviceable, Configurable, Disposable + Serviceable, Configurable, Disposable { private Lifecycle1 m_lifecycle1; @@ -132,18 +132,21 @@ public void contextualize( Context context ) throws ContextException { - System.out.println( "Lifecycle2Impl.contextualize() called (things like base directory passed in here)." ); + System.out.println( + "Lifecycle2Impl.contextualize() called (things like base directory passed in here)." ); System.out.flush(); } /** * @dna.dependency type="Lifecycle1" */ - public void service( ServiceManager serviceManager ) throws ServiceException + public void service( ServiceManager serviceManager ) + throws ServiceException { System.out.println( "Lifecycle2Impl.service() called " + "(lookup on other services possible now)." ); - System.out.println( "Lifecycle2Impl.service(), Lifecycle1 service looked up" ); + System.out.println( + "Lifecycle2Impl.service(), Lifecycle1 service looked up" ); m_lifecycle1 = (Lifecycle1) serviceManager.lookup( Lifecycle1.class.getName() ); } @@ -151,7 +154,8 @@ public void configure( Configuration configuration ) throws ConfigurationException { - System.out.println( "Lifecycle2Impl.configure() called (configuration from config.xml passed here)." ); + System.out.println( + "Lifecycle2Impl.configure() called (configuration from config.xml passed here)." ); System.out.flush(); } @@ -160,8 +164,11 @@ { System.out.println( "Lifecycle2Impl.initialize() called." ); System.out.flush(); - System.out.println( "Lifecycle2Impl.initialize(), Lifecycle1.myServiceMethod() " - + "method called result = " + m_lifecycle1.myServiceMethod() ); + System.out.println( + "Lifecycle2Impl.initialize(), Lifecycle1.myServiceMethod() " + + + "method called result = " + + m_lifecycle1.myServiceMethod() ); System.out.flush(); }