org.apache.wicket.jmx
Class Initializer

java.lang.Object
  extended by org.apache.wicket.jmx.Initializer
All Implemented Interfaces:
IDestroyer, IInitializer

public class Initializer
extends Object
implements IInitializer, IDestroyer

Registers Wicket's MBeans.

Users can specify the MBeanServer implementation in which to register the MBeans by setting the org.apache.wicket.mbean.server.agentid property to the agent id of the MBeanServer implementation they want, or by setting org.apache.wicket.mbean.server.class to the mbean server class they want (if both are provided, and the agent id returns a server, that one is used). This initializer will log an error when no mbean server with the provided agent id can be found, and will then fall back to use the platform mbean server. When no agent id is provided, the platform mbean server will be used.

Author:
eelcohillenius, David Hosier

Constructor Summary
Initializer()
           
 
Method Summary
 void destroy(Application application)
           
 void init(Application application)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Initializer

public Initializer()
Method Detail

destroy

public void destroy(Application application)
Specified by:
destroy in interface IDestroyer
Parameters:
application - The application loading the component
See Also:
IDestroyer.destroy(org.apache.wicket.Application)

init

public void init(Application application)
Specified by:
init in interface IInitializer
Parameters:
application - The application loading the component
See Also:
IInitializer.init(org.apache.wicket.Application)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.