|
JBoss Modular Service Kernel API 1.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.services.MBeanService
public final class MBeanService

A service which registers the target object as an MBean.
| Field Summary | |
|---|---|
static ServiceName |
JBOSS_JMX
The service name under which JMX-related entities are registered. |
static ServiceName |
JBOSS_JMX_MBEAN
The service name under which mbeans for services are registered. |
static ServiceName |
JBOSS_JMX_MBEANSERVER
The service name under which mbean servers are registered. |
| Fields inherited from interface org.jboss.msc.service.Service |
|---|
NULL, NULL_VALUE |
| Constructor Summary | |
|---|---|
MBeanService(Value<? extends MBeanServer> mbeanServer,
Value<?> value,
ObjectName objectName)
Construct a new instance. |
|
| Method Summary | |
|---|---|
Void |
getValue()
Get the actual value. |
void |
start(StartContext context)
Start the service. |
void |
stop(StopContext context)
Stop the service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static ServiceName JBOSS_JMX
public static ServiceName JBOSS_JMX_MBEAN
public static ServiceName JBOSS_JMX_MBEANSERVER
| Constructor Detail |
|---|
public MBeanService(Value<? extends MBeanServer> mbeanServer,
Value<?> value,
ObjectName objectName)
mbeanServer - the mbean servervalue - the value to installobjectName - the object name to use| Method Detail |
|---|
public void start(StartContext context)
throws StartException
start in interface Service<Void>context - the context which can be used to trigger an asynchronous service start
StartException - if the service could not be started for some reasonpublic void stop(StopContext context)
stop in interface Service<Void>context - the context which can be used to trigger an asynchronous service stop
public Void getValue()
throws IllegalStateException
getValue in interface Value<Void>IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.
|
JBoss Modular Service Kernel API 1.0.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||