|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.connector.AdminObjectWrapper
public class AdminObjectWrapper
Wrapper around AdminObject that exposes its config-properties as GBeanAttributes and supplies a disconnectable proxy to bind in jndi.
Constructor Summary | |
---|---|
AdminObjectWrapper()
Default constructor required when a class is used as a GBean Endpoint. |
|
AdminObjectWrapper(String adminObjectInterface,
String adminObjectClass,
Kernel kernel,
AbstractName abstractName,
String objectName,
ClassLoader cl)
Normal managed constructor. |
Method Summary | |
---|---|
Object |
$getResource()
Returns disconnectable proxy for binding in jndi. |
String |
getAdminObjectClass()
Returns class of wrapped AdminObject. |
String |
getAdminObjectInterface()
|
Object |
getAttribute(String name)
Delegating DynamicGBean getAttribute method. |
Map |
getConfigProperties()
Gets the config properties in the form of a map where the key is the property name and the value is property type (as a String not a Class). |
Object |
getConfigProperty(String property)
|
String |
getObjectName()
Gets the unique name of this object. |
Object |
invoke(String name,
Object[] arguments,
String[] types)
no-op DynamicGBean method |
boolean |
isEventProvider()
Determines if this object implemnts the event provider type defined in the J2EE Management specification. |
boolean |
isStateManageable()
Determines if this object implements the state manageable type defined in the J2EE Management specification. |
boolean |
isStatisticsProvider()
Determines if this object implemnts the statistics provider type defined in the J2EE Management specification. |
void |
setAttribute(String name,
Object value)
Delegating DynamicGBean setAttribute method. |
void |
setConfigProperty(String property,
Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminObjectWrapper()
public AdminObjectWrapper(String adminObjectInterface, String adminObjectClass, Kernel kernel, AbstractName abstractName, String objectName, ClassLoader cl) throws IllegalAccessException, InstantiationException, ClassNotFoundException
adminObjectInterface
- Interface the proxy will implement.adminObjectClass
- Class of admin object to be wrapped.
IllegalAccessException
InstantiationException
ClassNotFoundException
Method Detail |
---|
public String getAdminObjectInterface()
getAdminObjectInterface
in interface JCAAdminObject
public String getAdminObjectClass()
getAdminObjectClass
in interface JCAAdminObject
public Object $getResource()
$getResource
in interface AdminObjectSource
public Object getAttribute(String name) throws Exception
getAttribute
in interface DynamicGBean
name
- of attribute.
Exception
public void setAttribute(String name, Object value) throws Exception
setAttribute
in interface 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 DynamicGBean
name
- arguments
- types
-
Exception
public Map getConfigProperties()
getConfigProperties
in interface JCAAdminObject
public void setConfigProperty(String property, Object value) throws Exception
setConfigProperty
in interface JCAAdminObject
Exception
public Object getConfigProperty(String property) throws Exception
getConfigProperty
in interface JCAAdminObject
Exception
public String getObjectName()
J2EEManagedObject
getObjectName
in interface J2EEManagedObject
public boolean isStateManageable()
J2EEManagedObject
isStateManageable
in interface J2EEManagedObject
public boolean isStatisticsProvider()
J2EEManagedObject
isStatisticsProvider
in interface J2EEManagedObject
public boolean isEventProvider()
J2EEManagedObject
isEventProvider
in interface J2EEManagedObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |