User: d_jencks
Date: 01/11/11 22:36:50
Modified: jetty/src/main/org/jboss/jetty JettyService.java
Log:
Changes to move toward eliminating init and destroy from Service interface, and make
J2eeDeployer use mbean-refs.
Revision Changes Path
1.26 +7 -19 contrib/jetty/src/main/org/jboss/jetty/JettyService.java
Index: JettyService.java
===================================================================
RCS file: /cvsroot/jboss/contrib/jetty/src/main/org/jboss/jetty/JettyService.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- JettyService.java 2001/10/18 12:08:33 1.25
+++ JettyService.java 2001/11/12 06:36:50 1.26
@@ -5,7 +5,7 @@
* See terms of license at gnu.org.
*/
-// $Id: JettyService.java,v 1.25 2001/10/18 12:08:33 cgjung Exp $
+// $Id: JettyService.java,v 1.26 2001/11/12 06:36:50 d_jencks Exp $
package org.jboss.jetty;
@@ -37,7 +37,7 @@
*
* @see <related>
* @author <a href="mailto:[EMAIL PROTECTED]">Julian Gosnell</a>
- * @version $Revision: 1.25 $
+ * @version $Revision: 1.26 $
*/
// NOTES
@@ -223,28 +223,22 @@
// 'service' interface
//----------------------------------------------------------------------------
+
+ protected boolean _started=false;
+
public void
- initService()
+ startService()
throws Exception
{
if (!isInitialised())
{
- super.initService();
try {ensureService();} catch (Exception e) {e.printStackTrace();}
}
else
_log.warn("Jetty has already been initialised");
- }
-
- protected boolean _started=false;
- public void
- startService()
- throws Exception
- {
if (!isStarted())
{
- super.startService();
_jetty.start();
_started=true;
}
@@ -257,7 +251,6 @@
{
if (!isStopped())
{
- super.stopService();
try
{
_jetty.stop();
@@ -270,14 +263,8 @@
}
else
_log.warn("Jetty has already been stopped");
- }
-
- public void
- destroyService()
- {
if (!isDestroyed())
{
- super.destroyService();
_jetty.destroy();
_jetty=null;
_mbean=null;
@@ -285,6 +272,7 @@
else
_log.warn("Jetty has already been destroyed");
}
+
//----------------------------------------------------------------------------
// 'deploy' interface
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development