org.apache.wicket.jmx
Class Application

java.lang.Object
  extended by org.apache.wicket.jmx.Application
All Implemented Interfaces:
ApplicationMBean

public class Application
extends Object
implements ApplicationMBean

Exposes Application related functionality for JMX.

Author:
eelcohillenius

Constructor Summary
Application(Application application)
          Create.
 
Method Summary
 void clearLocalizerCache()
          Clears the localizer cache.
 void clearMarkupCache()
          Clears the markup cache, so that templates and properties etc will be reloaded the next time they are requested.
 String getApplicationClass()
          Gets the class of the application.
 String getConfigurationType()
          The configuration type, either Application.DEVELOPMENT or Application#DEPLOYMENT.
 String getHomePageClass()
          Gets the configured home page for this application.
 int getMarkupCacheSize()
          Gets the number of elements currently in the markup cache.
 String[] getMounts()
          Lists the registered URL mounts.
 String getWicketVersion()
          Gets the Wicket version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application(Application application)
Create.

Parameters:
application -
Method Detail

clearMarkupCache

public void clearMarkupCache()
                      throws IOException
Description copied from interface: ApplicationMBean
Clears the markup cache, so that templates and properties etc will be reloaded the next time they are requested.

Specified by:
clearMarkupCache in interface ApplicationMBean
Throws:
IOException
See Also:
ApplicationMBean.clearMarkupCache()

getApplicationClass

public String getApplicationClass()
                           throws IOException
Description copied from interface: ApplicationMBean
Gets the class of the application.

Specified by:
getApplicationClass in interface ApplicationMBean
Returns:
the class of the application
Throws:
IOException
See Also:
ApplicationMBean.getApplicationClass()

getConfigurationType

public String getConfigurationType()
Description copied from interface: ApplicationMBean
The configuration type, either Application.DEVELOPMENT or Application#DEPLOYMENT.

Specified by:
getConfigurationType in interface ApplicationMBean
Returns:
The configuration type
See Also:
ApplicationMBean.getConfigurationType()

getHomePageClass

public String getHomePageClass()
                        throws IOException
Description copied from interface: ApplicationMBean
Gets the configured home page for this application.

Specified by:
getHomePageClass in interface ApplicationMBean
Returns:
the configured home page for this application
Throws:
IOException
See Also:
ApplicationMBean.getHomePageClass()

getMarkupCacheSize

public int getMarkupCacheSize()
                       throws IOException
Description copied from interface: ApplicationMBean
Gets the number of elements currently in the markup cache.

Specified by:
getMarkupCacheSize in interface ApplicationMBean
Returns:
the number of elements currently in the markup cache
Throws:
IOException
See Also:
ApplicationMBean.getMarkupCacheSize()

getMounts

public String[] getMounts()
                   throws IOException
Description copied from interface: ApplicationMBean
Lists the registered URL mounts.

Specified by:
getMounts in interface ApplicationMBean
Returns:
the registered URL mounts
Throws:
IOException
See Also:
ApplicationMBean.getMounts()

getWicketVersion

public String getWicketVersion()
                        throws IOException
Description copied from interface: ApplicationMBean
Gets the Wicket version. The Wicket version is in the same format as the version element in the pom.xml file (project descriptor). The version is generated by maven in the build/release cycle and put in the wicket.properties file located in the root folder of the Wicket jar. The version usually follows one of the following formats:

Specified by:
getWicketVersion in interface ApplicationMBean
Returns:
the Wicket version
Throws:
IOException
See Also:
ApplicationMBean.getWicketVersion()

clearLocalizerCache

public void clearLocalizerCache()
                         throws IOException
Description copied from interface: ApplicationMBean
Clears the localizer cache.

Specified by:
clearLocalizerCache in interface ApplicationMBean
Throws:
IOException
See Also:
ApplicationMBean.clearLocalizerCache()


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