KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > util > Service


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.util;
10
11 import org.jboss.logging.Logger;
12 import org.jboss.system.ServiceMBeanSupport;
13
14 /**
15  * Base service class
16  *
17  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
18  * @version $Revision: 1.1.1.1 $
19  */

20 public class Service extends ServiceMBeanSupport
21 {
22
23    public Service()
24    {
25    }
26
27    public Service(final Class JavaDoc type)
28    {
29       super(type);
30    }
31
32    public Service(final String JavaDoc category)
33    {
34       super(category);
35    }
36
37    public Service(final Logger log)
38    {
39       super(log);
40    }
41
42    /**
43     * @jmx.managed-attribute
44     * access="read-only"
45     */

46    public int getState()
47    {
48       return super.getState();
49    }
50
51    /**
52     * @jmx.managed-attribute
53     * access="read-only"
54     */

55    public String JavaDoc getStateString()
56    {
57       return super.getStateString();
58    }
59
60    /**
61     * @jmx.managed-operation
62     */

63    public void create() throws Exception JavaDoc
64    {
65       super.create();
66    }
67
68    /**
69     * @jmx.managed-operation
70     */

71    public void start() throws Exception JavaDoc
72    {
73       super.start();
74    }
75
76    /**
77     * @jmx.managed-operation
78     */

79    public void stop()
80    {
81       super.stop();
82    }
83
84    /**
85     * @jmx.managed-operation
86     */

87    public void destroy()
88    {
89       super.destroy();
90    }
91 }
92
Popular Tags