|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
my.avalon.jmx.samples.HelloSample
HelloSample sample of avalon component usable throught jmx. This implementation don't use stage but need direct access to "jmx-server" service, and control when (un)register.
Constructor Summary | |
HelloSample()
|
Method Summary | |
void |
configure(org.apache.avalon.framework.configuration.Configuration config)
Configuration of the component by the container. |
void |
dispose()
|
void |
execute()
log a info message "execute". |
void |
initialize()
Initialization of the component by the container. |
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
Servicing of the component by the container during which service dependencies declared under the component can be resolved using the supplied service manager. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HelloSample()
Method Detail |
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
manager
- the service manager
org.apache.avalon.framework.service.ServiceException
public void configure(org.apache.avalon.framework.configuration.Configuration config) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
config
- the component configuration
org.apache.avalon.framework.configuration.ConfigurationException
- if a configuration error occurspublic void initialize() throws java.lang.Exception
initialize
in interface org.apache.avalon.framework.activity.Initializable
java.lang.Exception
- if an initialization error occurspublic void execute() throws java.lang.Exception
execute
in interface HelloSampleMBean
java.lang.Exception
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |