Package org.apache.wicket.jmx
Interface ApplicationMBean
-
- All Known Implementing Classes:
Application
public interface ApplicationMBean
MBean interface for exposing application related information and functionality.- Author:
- eelcohillenius
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
clearMarkupCache
void clearMarkupCache() throws IOException
Clears the markup cache, so that templates and properties etc will be reloaded the next time they are requested.- Throws:
IOException
-
getApplicationClass
String getApplicationClass() throws IOException
Gets the class of the application.- Returns:
- the class of the application
- Throws:
IOException
-
getConfigurationType
String getConfigurationType()
The configuration type, eitherRuntimeConfigurationType.DEVELOPMENTorRuntimeConfigurationType.DEPLOYMENT.- Returns:
- The configuration type
-
getHomePageClass
String getHomePageClass() throws IOException
Gets the configured home page for this application.- Returns:
- the configured home page for this application
- Throws:
IOException
-
getMarkupCacheSize
int getMarkupCacheSize() throws IOException
Gets the number of elements currently in the markup cache.- Returns:
- the number of elements currently in the markup cache
- Throws:
IOException
-
getWicketVersion
String getWicketVersion() throws IOException
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:- 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
- Returns:
- the Wicket version
- Throws:
IOException
-
clearLocalizerCache
void clearLocalizerCache() throws IOException
Clears the localizer cache.- Throws:
IOException
-
-