Package org.apache.wicket.jmx.wrapper
Class ResourceSettings
- java.lang.Object
-
- org.apache.wicket.jmx.wrapper.ResourceSettings
-
- All Implemented Interfaces:
ResourceSettingsMBean
public class ResourceSettings extends Object implements ResourceSettingsMBean
Exposes Application related functionality for JMX.- Author:
- eelcohillenius
-
-
Constructor Summary
Constructors Constructor Description ResourceSettings(Application application)
Create.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalizer()
Get the application's localizer.String
getPackageResourceGuard()
Gets thepackage resource guard
.String
getPropertiesFactory()
Get the property factory which will be used to load property filesString
getResourceFinders()
Gets the resource finder to use when searching for resources.String
getResourcePollFrequency()
String
getResourceStreamLocator()
String[]
getStringResourceLoaders()
boolean
getThrowExceptionOnMissingResource()
boolean
getUseDefaultOnMissingResource()
void
setThrowExceptionOnMissingResource(boolean throwExceptionOnMissingResource)
void
setUseDefaultOnMissingResource(boolean useDefaultOnMissingResource)
-
-
-
Constructor Detail
-
ResourceSettings
public ResourceSettings(Application application)
Create.- Parameters:
application
-
-
-
Method Detail
-
getLocalizer
public String getLocalizer()
Get the application's localizer.- Specified by:
getLocalizer
in interfaceResourceSettingsMBean
- Returns:
- The application wide localizer instance
-
getPackageResourceGuard
public String getPackageResourceGuard()
Gets thepackage resource guard
.- Specified by:
getPackageResourceGuard
in interfaceResourceSettingsMBean
- Returns:
- The package resource guard
-
getPropertiesFactory
public String getPropertiesFactory()
Get the property factory which will be used to load property files- Specified by:
getPropertiesFactory
in interfaceResourceSettingsMBean
- Returns:
- PropertiesFactory
-
getResourceFinders
public String getResourceFinders()
Gets the resource finder to use when searching for resources.- Specified by:
getResourceFinders
in interfaceResourceSettingsMBean
- Returns:
- Returns the resourceFinder.
- See Also:
ResourceSettings.getResourceFinders()
-
getResourcePollFrequency
public String getResourcePollFrequency()
- Specified by:
getResourcePollFrequency
in interfaceResourceSettingsMBean
- Returns:
- Returns the resourcePollFrequency.
- See Also:
ResourceSettings.setResourcePollFrequency(Duration)
-
getResourceStreamLocator
public String getResourceStreamLocator()
- Specified by:
getResourceStreamLocator
in interfaceResourceSettingsMBean
- Returns:
- Resource locator for this application
-
getStringResourceLoaders
public String[] getStringResourceLoaders()
- Specified by:
getStringResourceLoaders
in interfaceResourceSettingsMBean
- Returns:
- an unmodifiable list of all available string resource loaders
-
getThrowExceptionOnMissingResource
public boolean getThrowExceptionOnMissingResource()
- Specified by:
getThrowExceptionOnMissingResource
in interfaceResourceSettingsMBean
- Returns:
- boolean
- See Also:
ResourceSettings.getThrowExceptionOnMissingResource()
-
getUseDefaultOnMissingResource
public boolean getUseDefaultOnMissingResource()
- Specified by:
getUseDefaultOnMissingResource
in interfaceResourceSettingsMBean
- Returns:
- Whether to use a default value (if available) when a missing resource is requested
-
setThrowExceptionOnMissingResource
public void setThrowExceptionOnMissingResource(boolean throwExceptionOnMissingResource)
- Specified by:
setThrowExceptionOnMissingResource
in interfaceResourceSettingsMBean
- See Also:
ResourceSettings.setThrowExceptionOnMissingResource(boolean)
-
setUseDefaultOnMissingResource
public void setUseDefaultOnMissingResource(boolean useDefaultOnMissingResource)
- Specified by:
setUseDefaultOnMissingResource
in interfaceResourceSettingsMBean
- Parameters:
useDefaultOnMissingResource
- Whether to use a default value (if available) when a missing resource is requested
-
-