Package org.craftercms.engine.plugin
Interface PluginService
-
- All Known Implementing Classes:
PluginServiceImpl
public interface PluginService
Defines operations related to plugin execution- Since:
- 4.0.0
- Author:
- joseross
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPluginVariables(String url, BiConsumer<String,Object> setter)
Adds variables related to plugins if the given URL belongs to a pluginorg.apache.commons.configuration2.HierarchicalConfiguration<?>
getPluginConfig(String pluginId)
Loads the configuration for a given plugin
-
-
-
Method Detail
-
getPluginConfig
org.apache.commons.configuration2.HierarchicalConfiguration<?> getPluginConfig(String pluginId)
Loads the configuration for a given plugin- Parameters:
pluginId
- the id of the plugin- Returns:
- the configuration object
-
addPluginVariables
void addPluginVariables(String url, BiConsumer<String,Object> setter)
Adds variables related to plugins if the given URL belongs to a plugin- Parameters:
url
- the URL to checksetter
- the setter for the variables
-
-