|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.backsource.jmx.MBeanProxyFactory
A factory for creating and binding MBean proxies.
This factory will create and bind MBean proxies. These have three capabilities:
To be able to guarantee this semantics the rebinds and unbind methods int this class must be used to bind the proxied into JNDI.
| Constructor Summary | |
MBeanProxyFactory()
|
|
| Method Summary | |
static java.lang.Object |
create(java.lang.Class intf,
java.lang.String name)
Create an MBean proxy. |
static java.lang.Object |
create(java.lang.Class intf,
java.lang.String name,
java.lang.String jndiURL)
Create an MBean proxy. |
static java.lang.Object |
create(java.lang.String intfName,
java.lang.String name)
Create an MBean proxy. |
static java.lang.Object |
create(java.lang.String intfName,
java.lang.String name,
java.lang.String jndiURL)
Create an MBean proxy. |
static void |
rebind(java.lang.String jndiName,
java.lang.Object o)
Helper to bind object at the given jndiName, any missing parent name will be created. |
static void |
unbind(java.lang.String jndiName)
An object bound through the rebind method whould use this method when unbinding! |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MBeanProxyFactory()
| Method Detail |
public static java.lang.Object create(java.lang.Class intf,
java.lang.String name)
throws javax.management.OperationsException,
javax.naming.NamingException
intf - class of interface to cover for.name - ObjectName of MBean to invoke.
javax.management.OperationsException
javax.naming.NamingException
public static java.lang.Object create(java.lang.Class intf,
java.lang.String name,
java.lang.String jndiURL)
throws javax.management.OperationsException,
javax.naming.NamingException
intf - class of interface to cover for.name - ObjectName of MBean to invoke.jndiURL - a java.naming.provider.url pointing to another JNDI space, which holds an MBean server to invoke, if null the local server is used.
javax.management.OperationsException
javax.naming.NamingException
public static java.lang.Object create(java.lang.String intfName,
java.lang.String name,
java.lang.String jndiURL)
throws javax.management.OperationsException,
java.lang.ClassNotFoundException,
javax.naming.NamingException
name - ObjectName of MBean to invoke.jndiURL - a java.naming.provider.url pointing to another JNDI space, which holds an MBean server to invoke, if null the local server is used.
javax.management.OperationsException
java.lang.ClassNotFoundException
javax.naming.NamingException
public static java.lang.Object create(java.lang.String intfName,
java.lang.String name)
throws javax.management.OperationsException,
java.lang.ClassNotFoundException,
javax.naming.NamingException
name - ObjectName of MBean to invoke.
javax.management.OperationsException
java.lang.ClassNotFoundException
javax.naming.NamingException
public static void rebind(java.lang.String jndiName,
java.lang.Object o)
throws javax.naming.NamingException
by using the method, users will be failsafe if JBoss changes is JNDI semantics. JBoss currently does not serialize object when running in the same vm,see org.jnp.interfaces.NamingContext.rebind and lookup and the usage of MarshalledValuePair. This may ofcource change
javax.naming.NamingException
public static void unbind(java.lang.String jndiName)
throws javax.naming.NamingException
javax.naming.NamingException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||