|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.ServiceCreator
public class ServiceCreator
A helper class for the controller.
Service
Constructor Summary | |
---|---|
ServiceCreator(MBeanServer server)
Deprecated. This is no longer used and will be going away |
Method Summary | |
---|---|
static ServiceInstance |
install(MBeanServer server,
ObjectName objectName,
ServiceMetaData metaData,
Object mbean)
Install an MBean |
ObjectInstance |
install(ObjectName mbeanName,
ObjectName loaderName,
Element mbeanElement)
Deprecated. This is no longer used and will be going away |
void |
remove(ObjectName name)
Remove the installed object |
static Exception |
rethrow(String context,
Throwable t)
Rethrow an error as an exception |
void |
shutdown()
Clean shutdown |
static void |
uninstall(MBeanServer server,
ObjectName objectName)
Uninstall an MBean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceCreator(MBeanServer server)
server
- the mbean serverMethod Detail |
---|
public static Exception rethrow(String context, Throwable t) throws Exception
context
- the contextt
- the original throwable
Exception
- alwayspublic static ServiceInstance install(MBeanServer server, ObjectName objectName, ServiceMetaData metaData, Object mbean) throws Exception
server
- the mbean serverobjectName
- the object namemetaData
- the service metadatambean
- any mbean instance
Exception
- for any errorpublic static void uninstall(MBeanServer server, ObjectName objectName)
server
- the mbean serverobjectName
- the object namepublic void shutdown()
public ObjectInstance install(ObjectName mbeanName, ObjectName loaderName, Element mbeanElement) throws Exception
mbeanName
- the object nameloaderName
- the classloadermbeanElement
- the config
Exception
- for any errorpublic void remove(ObjectName name) throws Exception
name
- the object name
Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |