|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.elca.el4j.services.monitoring.jmx.SpringBeanMB
public class SpringBeanMB
The proxy class for a bean loaded in the ApplicationContext.
Field Summary | |
---|---|
protected ApplicationContext |
m_applicationContext
The Application Context where this Spring Bean is registered at. |
protected ApplicationContextMB |
m_applicationContextMB
The Application Context proxy for the real Application Context. |
protected BeanFactory |
m_beanFactory
The Bean Factory belonging to the referenced Application Context. |
protected Class |
m_class
The class name of this class. |
static String |
MBEAN_DOMAIN
The name of the domain of the ObjectName. |
static String |
MBEAN_KEY
The name of the key of the ObjectName. |
static String |
SPRING_BEAN_DOMAIN
The domain of the Spring Bean proxy as it will be registered at the MBean Server. |
Constructor Summary | |
---|---|
SpringBeanMB(String name,
ApplicationContextMB acMB,
ApplicationContext ac,
BeanFactory beanFactory,
MBeanServer mBeanServer)
Constructor. |
Method Summary | |
---|---|
void |
displayConfiguration(DisplayManager manager)
Displays the properties this bean was loaded with. |
void |
displayMethods(DisplayManager manager)
HTML listing of all methods in this class. |
void |
displayProperties(DisplayManager manager)
Display a bean's properties. |
ObjectName |
getApplicationContextMB()
Returns the object name of the Application Context proxy. |
String |
getClassName()
Returns the class name of the referenced bean. |
String[] |
getConfiguration()
Returns the configuration parameter as they have been set in the configuration files loaded by the Application Context. |
String[] |
getInterceptors()
Returns the interceptor class names of the referenced bean. |
boolean |
getIsProxied()
Returns whether the referenced bean is proxied or not. |
boolean |
getIsSingleton()
Returns whether the referenced bean is a Singleton or a Prototype. |
MBeanServer |
getMBeanServer()
Getter method for the mBeanServer member variable. |
String[] |
getMethods()
|
String |
getName()
Getter method for the name member variable. |
ObjectName |
getObjectName()
Getter method for the objectName member variable. |
String[] |
getProperties()
|
ObjectName[] |
getRegisteredMBean()
Returns the corresponding MBeans which are registered at the MBean Server via MBeanExporter. |
String |
getResourceDescription()
|
void |
init()
Init method. |
String |
introspect()
|
String |
readProperty(String property)
Try and read a property from this bean. |
protected void |
registerSpringBean()
Register this SpringBean at the MBean Server. |
void |
setObjectName()
Sets the objectName to of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SPRING_BEAN_DOMAIN
public static final String MBEAN_DOMAIN
public static final String MBEAN_KEY
protected ApplicationContext m_applicationContext
protected ApplicationContextMB m_applicationContextMB
protected Class m_class
protected BeanFactory m_beanFactory
Constructor Detail |
---|
public SpringBeanMB(String name, ApplicationContextMB acMB, ApplicationContext ac, BeanFactory beanFactory, MBeanServer mBeanServer)
name
- The bean definition name of this Spring BeanacMB
- The Application Context proxyac
- The real Application ContextbeanFactory
- The Bean Factory belonging to this Application ContextmBeanServer
- The MBean Server where this Spring Bean is registered atMethod Detail |
---|
public void init() throws BaseException
BaseException
- in case the initialization failedpublic void setObjectName()
public ObjectName getObjectName()
protected void registerSpringBean() throws BaseException
BaseException
- in case the registration at the MBean Server failedpublic MBeanServer getMBeanServer()
public String getName()
getName
in interface SpringBeanMBMBean
public String[] getConfiguration()
getConfiguration
in interface SpringBeanMBMBean
public ObjectName getApplicationContextMB()
getApplicationContextMB
in interface SpringBeanMBMBean
public ObjectName[] getRegisteredMBean()
getRegisteredMBean
in interface SpringBeanMBMBean
public String getClassName()
getClassName
in interface SpringBeanMBMBean
public boolean getIsSingleton()
getIsSingleton
in interface SpringBeanMBMBean
public String[] getInterceptors()
getInterceptors
in interface SpringBeanMBMBean
public boolean getIsProxied()
getIsProxied
in interface SpringBeanMBMBean
public String getResourceDescription()
getResourceDescription
in interface SpringBeanMBMBean
public String[] getMethods()
getMethods
in interface SpringBeanMBMBean
public String[] getProperties()
getProperties
in interface SpringBeanMBMBean
public String readProperty(String property)
readProperty
in interface SpringBeanMBMBean
property
- The property to read.
public void displayProperties(DisplayManager manager)
manager
- The DisplayManager
to use.public void displayConfiguration(DisplayManager manager)
manager
- The DisplayManager
to add to.public String introspect()
introspect
in interface SpringBeanMBMBean
public void displayMethods(DisplayManager manager)
manager
- The DisplayManager to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |