public class ScriptManager extends AbstractLogEnabled implements Component, Contextualizable, Serviceable
| Modifier and Type | Field and Description |
|---|---|
protected Context |
_context
Cocoon context
|
protected I18nUtils |
_i18nUtils
i18n utils
|
protected static List<Configuration> |
_scriptConfigurations
The list of script configuration
|
private SourceResolver |
_sourceResolver
Source resolver
|
static String |
ROLE
The Avalon role
|
| Constructor and Description |
|---|
ScriptManager() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Configuration> |
_getScriptConfigurations()
Initialize the static script files if needed.
|
protected I18nizableText |
_parseI18nizableText(Configuration config,
String pluginName,
String name)
Parses an i18n text.
|
void |
contextualize(Context context) |
String |
getGlobalScripts()
Retrieves the configured scripts
|
Map<String,Object> |
getScriptHtmlDescription()
Retrieves and concatenates the script descriptions
|
void |
service(ServiceManager manager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected static List<Configuration> _scriptConfigurations
protected I18nUtils _i18nUtils
private SourceResolver _sourceResolver
public ScriptManager()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionprotected List<Configuration> _getScriptConfigurations() throws ConfigurationException, SAXException, IOException
ConfigurationException - If the configuration is wrongSAXException - If an error occurredIOException - If an error occurredpublic String getGlobalScripts() throws ConfigurationException, SAXException, IOException
IOException - If an error occurredSAXException - If an error occurredConfigurationException - If the configuration is wrongpublic Map<String,Object> getScriptHtmlDescription() throws ConfigurationException, SAXException, IOException
IOException - If an error occurredSAXException - If an error occurredConfigurationException - If the configuration is wrongprotected I18nizableText _parseI18nizableText(Configuration config, String pluginName, String name)
config - the configuration to use.pluginName - the current plugin name.name - the child name.