| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME |
| Constructor and Description |
|---|
MBeanRegistrationService(String name,
List<SetupAction> setupActions)
Create an instance.
|
MBeanRegistrationService(String name,
List<SetupAction> setupActions,
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, List<SetupAction> setupActions)
name - The name to use as an ObjectNamepublic MBeanRegistrationService(String name, List<SetupAction> setupActions, org.jboss.msc.value.Value<T> value)
name - The name to use as an ObjectNamevalue - The object to registerpublic 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 © 2018 JBoss by Red Hat. All rights reserved.