| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
| Constructor and Description |
|---|
MBeanRegistrationService(String name)
Create an instance.
|
MBeanRegistrationService(String name,
org.jboss.msc.value.Value<T> value)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.msc.inject.Injector<MBeanServer> |
getMBeanServerInjector() |
Void |
getValue() |
org.jboss.msc.inject.Injector<T> |
getValueInjector() |
void |
start(org.jboss.msc.service.StartContext context)
Register the mbean with the mbean server.
|
void |
stop(org.jboss.msc.service.StopContext context)
Unregister the mbean from the mbean server.
|
public MBeanRegistrationService(String name)
name - The name to use as an ObjectNamepublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<Void>context - The start contextorg.jboss.msc.service.StartException - If any registration problems occurpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<Void>context - The stop contextpublic Void getValue() throws IllegalStateException
getValue in interface org.jboss.msc.value.Value<Void>IllegalStateExceptionpublic org.jboss.msc.inject.Injector<MBeanServer> getMBeanServerInjector()
public org.jboss.msc.inject.Injector<T> getValueInjector()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.