Package org.ametys.core.cocoon
Class XMLResourceBundle
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.i18n.XMLResourceBundle
org.ametys.core.cocoon.XMLResourceBundle
- All Implemented Interfaces:
Component,LogEnabled,Bundle
This implementation of
Bundle interface for XML resources allows to be invalidated.-
Field Summary
Fields inherited from class org.apache.cocoon.i18n.XMLResourceBundle
AT_KEY, EL_CATALOGUE, EL_MESSAGE, parent, values -
Constructor Summary
ConstructorsConstructorDescriptionXMLResourceBundle(String sourceURI, Locale locale, Bundle parentBundle) Construct a bundle. -
Method Summary
Modifier and TypeMethodDescriptiongetRawObject(String key) Expert method ! Get an instance of theParamSaxBufferassociated with the key.voidInvalidate bundlebooleanreload(ServiceManager manager, SourceResolver resolver, long interval) Methods inherited from class org.apache.cocoon.i18n.XMLResourceBundle
getLocale, getObject, getSourceURI, getString, getValidity, reload, setValidityMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
XMLResourceBundle
Construct a bundle.- Parameters:
sourceURI- source URI of the XML bundlelocale- localeparentBundle- parent bundle of this bundle
-
-
Method Details
-
reload
- Overrides:
reloadin classXMLResourceBundle
-
invalidate
Invalidate bundle -
getRawObject
Expert method ! Get an instance of theParamSaxBufferassociated with the key. This method delegates to parent object only if related to the same Locale.- Parameters:
key- the key- Returns:
- the value, or null if no value associated with the key in this Locale.
-