|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.monitoring.jmx.ApplicationContextMB
public class ApplicationContextMB
The proxy class for an ApplicationContext.
| Field Summary | |
|---|---|
static String |
APPLICATION_CONTEXT_DOMAIN
The domain of the Application Context proxy as it will be registered at the MBean Server. |
protected ApplicationContext |
m_applicationContext
The reference to the real Application Context. |
protected BeanFactory |
m_beanFactory
The Bean Factory belonging to this Application Context. |
protected MBeanServer |
m_mBeanServer
The MBean Server to which this Application Context is registered. |
static String |
NOT_MODULE_APPLICATION_CONTEXT
The message to be printed in case the used Application Context is not the ModuleApplicationContext. |
| Constructor Summary | |
|---|---|
ApplicationContextMB(ApplicationContext applicationContext,
BeanFactory beanFactory,
MBeanServer mBeanServer,
JvmMB jvmmb)
Constructor. |
|
| Method Summary | |
|---|---|
String[] |
getExclusiveConfigLocations()
Returns the exclusive config locations of this ApplicationContext. |
String[] |
getInclusiveConfigLocations()
Returns the inclusive config locations of this ApplicationContext. |
int |
getInstanceCounter()
The getter method for the instanceCounter member. |
ObjectName |
getJvmMB()
Returns the JvmMB of this ApplicationContext. |
String |
getName()
Returns the display name of the ApplicationContext. |
ObjectName |
getObjectName()
Returns the object name of the ApplicationContext. |
String[] |
getResolvedConfigLocations()
Returns the resolved config locations of this ApplicationContext, i.e. |
SpringBeanMB[] |
getSpringBeanMB()
Getter for the springBeanMB member. |
ObjectName[] |
getSpringBeansMB()
Returns the SpringBeans created by this ApplicationContext. |
String[] |
getURLClassPath()
If loaded via maven, the application's classpath will only contain classworlds, but the modules loaded will be abailable as URLs from maven's URLClassLoader that loads the application. |
void |
init()
Init method. |
protected void |
registerApplicationContext()
Register this ApplicationContext at the MBean Server. |
protected void |
registerAtJvmMB()
Register this ApplicationContext at the JVM MBean. |
void |
setInstanceCounter()
Save the class variable s_counter to an instance member and increment the class variable by 1. |
protected void |
setObjectName()
Set the objectName of this ApplicationContext. |
protected void |
setSpringBeanMB(SpringBeanMB[] springBeanMB)
Setter for the springBeanMB member. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String APPLICATION_CONTEXT_DOMAIN
public static final String NOT_MODULE_APPLICATION_CONTEXT
protected ApplicationContext m_applicationContext
protected MBeanServer m_mBeanServer
protected BeanFactory m_beanFactory
| Constructor Detail |
|---|
public ApplicationContextMB(ApplicationContext applicationContext,
BeanFactory beanFactory,
MBeanServer mBeanServer,
JvmMB jvmmb)
applicationContext - The Application Context to which this class is a proxy.beanFactory - The Bean Factory belonging to this Application Context.mBeanServer - The MBean Server to which this Application Context is
registered.jvmmb - The proxy JVM in which this Application Context is running.| Method Detail |
|---|
public void init()
throws BaseException
BaseException - in case the initialization failed
protected void registerApplicationContext()
throws BaseException
BaseException - in case the registration at the MBean Server failedprotected void registerAtJvmMB()
protected void setObjectName()
public ObjectName getObjectName()
public void setInstanceCounter()
public int getInstanceCounter()
public String getName()
getName in interface ApplicationContextMBMBeanpublic ObjectName[] getSpringBeansMB()
getSpringBeansMB in interface ApplicationContextMBMBeanpublic ObjectName getJvmMB()
getJvmMB in interface ApplicationContextMBMBeanpublic String[] getResolvedConfigLocations()
getResolvedConfigLocations in interface ApplicationContextMBMBeanpublic String[] getInclusiveConfigLocations()
getInclusiveConfigLocations in interface ApplicationContextMBMBeanpublic String[] getExclusiveConfigLocations()
getExclusiveConfigLocations in interface ApplicationContextMBMBeanpublic String[] getURLClassPath()
getURLClassPath in interface ApplicationContextMBMBeanprotected void setSpringBeanMB(SpringBeanMB[] springBeanMB)
springBeanMB - The value to setpublic SpringBeanMB[] getSpringBeanMB()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||