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
public class XMLResourceBundle extends XMLResourceBundle
This implementation ofBundle
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
Constructors Constructor Description XMLResourceBundle(String sourceURI, Locale locale, Bundle parentBundle)
Construct a bundle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getRawObject(String key)
Expert method ! Get an instance of theParamSaxBuffer
associated with the key.void
invalidate()
Invalidate bundleboolean
reload(ServiceManager manager, SourceResolver resolver, long interval)
-
Methods inherited from class org.apache.cocoon.i18n.XMLResourceBundle
getLocale, getObject, getSourceURI, getString, getValidity, reload, setValidity
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
XMLResourceBundle
public XMLResourceBundle(String sourceURI, Locale locale, Bundle parentBundle)
Construct a bundle.- Parameters:
sourceURI
- source URI of the XML bundlelocale
- localeparentBundle
- parent bundle of this bundle
-
-
Method Detail
-
reload
public boolean reload(ServiceManager manager, SourceResolver resolver, long interval)
- Overrides:
reload
in classXMLResourceBundle
-
invalidate
public void invalidate()
Invalidate bundle
-
getRawObject
public Object getRawObject(String key)
Expert method ! Get an instance of theParamSaxBuffer
associated 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.
-
-