org.opencms.i18n
public class CmsVfsBundleManager extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
CmsVfsBundleManager.Listener
Event listener class which updates the cache based on publish events.
|
class |
CmsVfsBundleManager.NameAndLocale
Data holder for a base name and locale of a message bundle.
|
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
LOG
The logger instance for this class.
|
static java.lang.String |
TYPE_PROPERTIES_BUNDLE
Resource type name for plain-text properties files containing messages.
|
static java.lang.String |
TYPE_XML_BUNDLE
Resource type name for XML contents containing messages.
|
Constructor and Description |
---|
CmsVfsBundleManager(CmsObject cms)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected CmsObject |
getCmsObject()
Gets the current CMS context.
|
CmsVfsBundleManager.Listener |
getEventListener()
Gets the event listener used by this object.
|
protected void |
logError(java.lang.Exception e)
Logs an exception that occurred.
|
void |
reload(boolean isStartup)
Re-initializes the resource bundles.
|
protected static final org.apache.commons.logging.Log LOG
public static final java.lang.String TYPE_PROPERTIES_BUNDLE
public static final java.lang.String TYPE_XML_BUNDLE
public CmsVfsBundleManager(CmsObject cms)
cms
- the CMS context to useprotected CmsObject getCmsObject()
public CmsVfsBundleManager.Listener getEventListener()
protected void logError(java.lang.Exception e)
e
- the exception to logpublic void reload(boolean isStartup)
isStartup
- true when this is called during startup