[jboss-cvs] JBossAS SVN: r85350 - projects/microcontainer/trunk/jmx-mc-int/src/main/java/org/jboss/system.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 5 14:49:30 EST 2009


Author: adrian at jboss.org
Date: 2009-03-05 14:49:30 -0500 (Thu, 05 Mar 2009)
New Revision: 85350

Added:
   projects/microcontainer/trunk/jmx-mc-int/src/main/java/org/jboss/system/Service.java
Log:
[JBAS-6577] Need org.jboss.system.Service

Copied: projects/microcontainer/trunk/jmx-mc-int/src/main/java/org/jboss/system/Service.java (from rev 85349, trunk/system/src/main/org/jboss/system/Service.java)
===================================================================
--- projects/microcontainer/trunk/jmx-mc-int/src/main/java/org/jboss/system/Service.java	                        (rev 0)
+++ projects/microcontainer/trunk/jmx-mc-int/src/main/java/org/jboss/system/Service.java	2009-03-05 19:49:30 UTC (rev 85350)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.system;
+
+/**
+ * The Service interface.
+ *      
+ * @author <a href="mailto:marc.fleury at jboss.org">Marc Fleury</a>.
+ * @version $Revision$
+ */
+public interface Service
+{
+   /**
+    * create the service, do expensive operations etc
+    * 
+    * @throws Exception for any error
+    */
+   void create() throws Exception;
+   
+   /**
+    * start the service, create is already called
+    * 
+    * @throws Exception for any error
+    */
+   void start() throws Exception;
+   
+   /**
+    * stop the service
+    */
+   void stop();
+   
+   /**
+    * destroy the service, tear down 
+    */
+   void destroy();
+}




More information about the jboss-cvs-commits mailing list