@ManagedResource public abstract class Component extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
org.springframework.jmx.export.annotation.ManagedAttribute
must be public for the property to
be properly exposed in the MBean.Modifier | Constructor and Description |
---|---|
protected |
Component(String name)
Constructs a component with a given name.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
assertDuringInitialization() |
protected void |
assertInitialized() |
void |
destroy() |
String |
getName() |
String |
getType() |
protected void |
init()
Called after bean properties have been set.
|
boolean |
isInitialized() |
protected void |
postInit()
Called after bean properties have been set, and init() called.
|
protected void |
shutdown()
Called when the container is destroyed.
|
String |
toString() |
protected Component(String name)
name
- The component's name.@ManagedAttribute(currencyTimeLimit=-1, description="The component\'s class name") public String getType()
@ManagedAttribute(currencyTimeLimit=-1, description="The component\'s name") public String getName()
public final void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public final void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
@ManagedAttribute(currencyTimeLimit=0, description="Whether or not this component has been fully initialized") public boolean isInitialized()
protected void assertDuringInitialization()
protected void assertInitialized()
protected void init() throws Exception
super.init()
before doing anything else in the method.Exception
protected void postInit() throws Exception
super.postInit()
after doing anything else in the method.Exception
protected void shutdown()