|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.connector.AdminObjectWrapper
Wrapper around AdminObject that exposes its config-properties as GBeanAttributes and supplies a disconnectable proxy to bind in jndi.
Field Summary | |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
AdminObjectWrapper()
Default constructor required when a class is used as a GBean Endpoint. |
|
AdminObjectWrapper(Class adminObjectInterface,
Class adminObjectClass,
org.apache.geronimo.kernel.Kernel kernel,
String objectName)
Normal managed constructor. |
Method Summary | |
void |
doFail()
GBean fail method. |
void |
doStart()
GBean start method. |
void |
doStop()
GBean stop method. |
Class |
getAdminObjectClass()
Returns class of wrapped AdminObject. |
Object |
getAttribute(String name)
Delegating DynamicGBean getAttribute method. |
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
Object |
getMethodInterceptor()
Returns the MethodInterceptor the proxy communicates with when connected. |
Object |
getProxy()
Returns disconnectable proxy for binding in jndi. |
Object |
invoke(String name,
Object[] arguments,
String[] types)
no-op DynamicGBean method |
void |
setAttribute(String name,
Object value)
Delegating DynamicGBean setAttribute method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail |
public AdminObjectWrapper()
public AdminObjectWrapper(Class adminObjectInterface, Class adminObjectClass, org.apache.geronimo.kernel.Kernel kernel, String objectName) throws IllegalAccessException, InstantiationException
adminObjectInterface
- Interface the proxy will implement.adminObjectClass
- Class of admin object to be wrapped.kernel
- name is used so proxy can find correct kernel.objectName
- is used by proxy to find this gbean to reconnect to.
IllegalAccessException
InstantiationException
Method Detail |
public Class getAdminObjectClass()
public Object getProxy()
public Object getMethodInterceptor()
public void doStart() throws org.apache.geronimo.gbean.WaitingException, Exception
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
org.apache.geronimo.gbean.WaitingException
Exception
public void doStop() throws org.apache.geronimo.gbean.WaitingException, Exception
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
org.apache.geronimo.gbean.WaitingException
Exception
public void doFail()
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
public Object getAttribute(String name) throws Exception
getAttribute
in interface org.apache.geronimo.gbean.DynamicGBean
name
- of attribute.
Exception
public void setAttribute(String name, Object value) throws Exception
setAttribute
in interface org.apache.geronimo.gbean.DynamicGBean
name
- of attribute.value
- of attribute to be set.
Exception
public Object invoke(String name, Object[] arguments, String[] types) throws Exception
invoke
in interface org.apache.geronimo.gbean.DynamicGBean
name
- arguments
- types
-
Exception
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |