public class ResourceSettings extends Object implements ResourceSettingsMBean
Constructor and Description |
---|
ResourceSettings(Application application)
Create.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalizer()
Get the application's localizer.
|
String |
getPackageResourceGuard()
Gets the
package resource guard . |
String |
getPropertiesFactory()
Get the property factory which will be used to load property files
|
String |
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) |
public ResourceSettings(Application application)
application
- public String getLocalizer()
getLocalizer
in interface ResourceSettingsMBean
public String getPackageResourceGuard()
package resource guard
.getPackageResourceGuard
in interface ResourceSettingsMBean
public String getPropertiesFactory()
getPropertiesFactory
in interface ResourceSettingsMBean
public String getResourceFinders()
getResourceFinders
in interface ResourceSettingsMBean
ResourceSettings.getResourceFinders()
public String getResourcePollFrequency()
getResourcePollFrequency
in interface ResourceSettingsMBean
ResourceSettings.setResourcePollFrequency(Duration)
public String getResourceStreamLocator()
getResourceStreamLocator
in interface ResourceSettingsMBean
public String[] getStringResourceLoaders()
getStringResourceLoaders
in interface ResourceSettingsMBean
public boolean getThrowExceptionOnMissingResource()
getThrowExceptionOnMissingResource
in interface ResourceSettingsMBean
ResourceSettings.getThrowExceptionOnMissingResource()
public boolean getUseDefaultOnMissingResource()
getUseDefaultOnMissingResource
in interface ResourceSettingsMBean
public void setThrowExceptionOnMissingResource(boolean throwExceptionOnMissingResource)
setThrowExceptionOnMissingResource
in interface ResourceSettingsMBean
ResourceSettings.setThrowExceptionOnMissingResource(boolean)
public void setUseDefaultOnMissingResource(boolean useDefaultOnMissingResource)
setUseDefaultOnMissingResource
in interface ResourceSettingsMBean
useDefaultOnMissingResource
- Whether to use a default value (if available) when a missing resource is requestedCopyright © 2006–2022 Apache Software Foundation. All rights reserved.