|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.jboss.util.ServiceLocator
public final class ServiceLocator
Helper class to locate MBean services.
| Method Summary | |
|---|---|
static Object |
create(Class instance,
Class intrface,
ObjectName name,
MBeanServer server)
Convenience method for registering an MBean and retrieving a proxy for it. |
static Object |
create(Class instance,
Class intrface,
ObjectName name,
String agentID)
Convenience method for registering an MBean and retrieving a proxy for it. |
static Object |
get(Class intrface,
ObjectName name,
MBeanServer server)
Creates a proxy to an MBean in the given MBean server. |
static Object |
get(Class intrface,
ObjectName name,
String agentID)
Creates a proxy to an MBean in the given MBean server. |
static Object |
get(ObjectName name,
MBeanServer server)
|
static ClassLoader |
getClassLoader()
|
static MBeanServer |
getJBoss()
Gets the JBoss MBeanServer. |
static org.jboss.system.server.ServerConfig |
getJBossConfiguration()
Gets the JBoss configuration service. |
static Object |
getService(Class itf,
ObjectName name)
Locates the given service and return it as the given interface. |
static Object |
getService(Class itf,
String name)
|
static Object |
getService(ObjectName name)
Locates and return the named MBean service. |
static Object |
getService(String name)
|
static org.jboss.system.ServiceControllerMBean |
getServiceController()
|
static void |
setClassLoader(ClassLoader cl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setClassLoader(ClassLoader cl)
public static ClassLoader getClassLoader()
public static MBeanServer getJBoss()
public static org.jboss.system.ServiceControllerMBean getServiceController()
public static Object getService(ObjectName name)
throws org.jboss.mx.util.MBeanProxyCreationException
name - the service name
org.jboss.mx.util.MBeanProxyCreationException
public static Object getService(String name)
throws org.jboss.mx.util.MBeanProxyCreationException,
MalformedObjectNameException
org.jboss.mx.util.MBeanProxyCreationException
MalformedObjectNameException
public static Object getService(Class itf,
String name)
throws org.jboss.mx.util.MBeanProxyCreationException,
MalformedObjectNameException
org.jboss.mx.util.MBeanProxyCreationException
MalformedObjectNameException
public static Object getService(Class itf,
ObjectName name)
throws org.jboss.mx.util.MBeanProxyCreationException
itf - the interfacename - the MBean name
org.jboss.mx.util.MBeanProxyCreationExceptionpublic static org.jboss.system.server.ServerConfig getJBossConfiguration()
public static Object get(Class intrface,
ObjectName name,
String agentID)
throws org.jboss.mx.util.MBeanProxyCreationException
intrface - the interface this proxy implementsname - object name of the MBean this proxy connects toagentID - agent ID of the MBean server this proxy connects to
org.jboss.mx.util.MBeanProxyCreationException - if the proxy could not be created
public static Object get(Class intrface,
ObjectName name,
MBeanServer server)
throws org.jboss.mx.util.MBeanProxyCreationException
intrface - the interface this proxy implementsname - object name of the MBean this proxy connects toserver - MBean server this proxy connects to
org.jboss.mx.util.MBeanProxyCreationException - if the proxy could not be created
public static Object get(ObjectName name,
MBeanServer server)
throws org.jboss.mx.util.MBeanProxyCreationException
org.jboss.mx.util.MBeanProxyCreationException
public static Object create(Class instance,
Class intrface,
ObjectName name,
String agentID)
throws org.jboss.mx.util.MBeanProxyCreationException
instance - MBean instance to be registeredintrface - the interface this proxy implementsname - object name of the MBeanagentID - agent ID of the MBean server this proxy connects to
org.jboss.mx.util.MBeanProxyCreationException - if the proxy could not be created
public static Object create(Class instance,
Class intrface,
ObjectName name,
MBeanServer server)
throws org.jboss.mx.util.MBeanProxyCreationException
instance - MBean instance to be registeredintrface - the interface this proxy implementsname - object name of the MBeanserver - MBean server this proxy connects to
org.jboss.mx.util.MBeanProxyCreationException - if the proxy could not be created
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||