Package org.apache.wicket.jmx.wrapper
Class Application
- java.lang.Object
-
- org.apache.wicket.jmx.wrapper.Application
-
- All Implemented Interfaces:
ApplicationMBean
public class Application extends Object implements ApplicationMBean
Exposes Application related functionality for JMX.- Author:
- eelcohillenius
-
-
Constructor Summary
Constructors Constructor Description Application(org.apache.wicket.Application application)Create.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearLocalizerCache()Clears the localizer cache.voidclearMarkupCache()Clears the markup cache, so that templates and properties etc will be reloaded the next time they are requested.StringgetApplicationClass()Gets the class of the application.StringgetConfigurationType()The configuration type, eitherRuntimeConfigurationType.DEVELOPMENTorRuntimeConfigurationType.DEPLOYMENT.StringgetHomePageClass()Gets the configured home page for this application.intgetMarkupCacheSize()Gets the number of elements currently in the markup cache.StringgetWicketVersion()Gets the Wicket version.
-
-
-
Constructor Detail
-
Application
public Application(org.apache.wicket.Application application)
Create.- Parameters:
application-
-
-
Method Detail
-
clearMarkupCache
public void clearMarkupCache() throws IOException
Description copied from interface:ApplicationMBeanClears the markup cache, so that templates and properties etc will be reloaded the next time they are requested.- Specified by:
clearMarkupCachein interfaceApplicationMBean- Throws:
IOException- See Also:
ApplicationMBean.clearMarkupCache()
-
getApplicationClass
public String getApplicationClass() throws IOException
Description copied from interface:ApplicationMBeanGets the class of the application.- Specified by:
getApplicationClassin interfaceApplicationMBean- Returns:
- the class of the application
- Throws:
IOException- See Also:
ApplicationMBean.getApplicationClass()
-
getConfigurationType
public String getConfigurationType()
Description copied from interface:ApplicationMBeanThe configuration type, eitherRuntimeConfigurationType.DEVELOPMENTorRuntimeConfigurationType.DEPLOYMENT.- Specified by:
getConfigurationTypein interfaceApplicationMBean- Returns:
- The configuration type
- See Also:
ApplicationMBean.getConfigurationType()
-
getHomePageClass
public String getHomePageClass() throws IOException
Description copied from interface:ApplicationMBeanGets the configured home page for this application.- Specified by:
getHomePageClassin interfaceApplicationMBean- Returns:
- the configured home page for this application
- Throws:
IOException- See Also:
ApplicationMBean.getHomePageClass()
-
getMarkupCacheSize
public int getMarkupCacheSize() throws IOException
Description copied from interface:ApplicationMBeanGets the number of elements currently in the markup cache.- Specified by:
getMarkupCacheSizein interfaceApplicationMBean- Returns:
- the number of elements currently in the markup cache
- Throws:
IOException- See Also:
ApplicationMBean.getMarkupCacheSize()
-
getWicketVersion
public String getWicketVersion() throws IOException
Description copied from interface:ApplicationMBeanGets 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:- major.minor[.bug] for stable versions. 1.1, 1.2, 1.2.1 are examples
- major.minor-state for development versions. 1.2-beta2, 1.3-SNAPSHOT are examples
- Specified by:
getWicketVersionin interfaceApplicationMBean- Returns:
- the Wicket version
- Throws:
IOException- See Also:
ApplicationMBean.getWicketVersion()
-
clearLocalizerCache
public void clearLocalizerCache() throws IOException
Description copied from interface:ApplicationMBeanClears the localizer cache.- Specified by:
clearLocalizerCachein interfaceApplicationMBean- Throws:
IOException- See Also:
ApplicationMBean.clearLocalizerCache()
-
-