|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.services.BaseService
coldbox.system.services.PluginService
public class PluginService
The coldbox plugin service
| Constructor Summary | |
|---|---|
init(any controller)
Constructor |
|
| Method Summary | |
|---|---|
void |
clearDictionary()
Clear the cache dictionary |
any |
get(any plugin, boolean custom, [any module=''], [boolean init='true'])
Get a new/cached plugin instance |
struct |
getCacheDictionary()
Get the plugin cache dictionary |
string |
getCorePluginsPath()
Get the base invocation path where core plugins exist |
string |
getCustomPluginsExternalPath()
Get the base invocation path where external custom convention plugins exist |
string |
getCustomPluginsPath()
Get the base invocation path where custom convention plugins exist |
string |
getCustomPluginsPhysicalPath()
Get the physical path where custom convention plugins exist |
string |
getExtensionsPath()
Get the base invocation path where extension plugins exist |
string |
getExtensionsPhysicalPath()
Get the physical path where extension plugins exist |
private struct |
getNewMDEntry()
Get a new metadata entry structure for plugins |
private string |
getPluginCacheKey(any plugin, boolean custom, [any module=''])
Get the plugin Cache Key |
private string |
locatePluginPath(any plugin, boolean custom, [any module=''])
Locate a full plugin instantiation path from the requested plugin name |
any |
new(any plugin, boolean custom, [any module=''], [boolean init='true'])
Create a New Plugin Instance whether it is core or custom |
void |
onConfigurationLoad()
|
private void |
setCacheDictionary(BaseDictionary cacheDictionary)
Set the plugin cache dictionary |
private void |
setCorePluginsPath(string corePluginsPath)
Set CorePluginsPath |
private void |
setCustomPluginsExternalPath(string customPluginsExternalPath)
Set customPluginsExternalPath |
private void |
setCustomPluginsPath(string customPluginsPath)
Set CorePluginsPath |
private void |
setCustomPluginsPhysicalPath(string customPluginsPhysicalPath)
Set customPluginsPhysicalPath |
private void |
setExtensionsPath(string extensionsPath)
Set ExtensionsPath |
private void |
setExtensionsPhysicalPath(string extensionsPhysicalPath)
Set ExtensionsPhysicalPath |
private struct |
storeMetadata(string pluginKey, any pluginMD)
Store a plugin's metadata introspection |
| Methods inherited from class coldbox.system.services.BaseService |
|---|
convertToColdBox, debug, getColdboxOCM, getLogger, getUtil, getcontroller, isFamilyType, onAspectsLoad, onShutdown, setcontroller
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any controller)
controller| Method Detail |
|---|
public void clearDictionary()
public any get(any plugin, boolean custom, [any module=''], [boolean init='true'])
plugin - The name (classpath) of the plugin to create. We will search for it.custom - Custom plugin or coldbox pluginmodule - The module to retrieve the plugin frominit - Auto init() the plugin upon constructionpublic struct getCacheDictionary()
public string getCorePluginsPath()
public string getCustomPluginsExternalPath()
public string getCustomPluginsPath()
public string getCustomPluginsPhysicalPath()
public string getExtensionsPath()
public string getExtensionsPhysicalPath()
private struct getNewMDEntry()
private string getPluginCacheKey(any plugin, boolean custom, [any module=''])
plugin - The name (classpath) of the plugin to createcustom - Custom plugin or coldbox pluginmodule - The module to retrieve the plugin fromprivate string locatePluginPath(any plugin, boolean custom, [any module=''])
plugin - The plugin to validate the path on.custom - Whether its a custom plugin or not.module - The module to retrieve the plugin frompublic any new(any plugin, boolean custom, [any module=''], [boolean init='true'])
plugin - The name (classpath) of the plugin to createcustom - Custom plugin or coldbox pluginmodule - The module to retrieve the plugin frominit - Auto init() the plugin upon constructionpublic void onConfigurationLoad()
onConfigurationLoad
in class
BaseService
private void setCacheDictionary(BaseDictionary cacheDictionary)
cacheDictionaryprivate void setCorePluginsPath(string corePluginsPath)
corePluginsPathprivate void setCustomPluginsExternalPath(string customPluginsExternalPath)
customPluginsExternalPathprivate void setCustomPluginsPath(string customPluginsPath)
customPluginsPathprivate void setCustomPluginsPhysicalPath(string customPluginsPhysicalPath)
customPluginsPhysicalPathprivate void setExtensionsPath(string extensionsPath)
extensionsPathprivate void setExtensionsPhysicalPath(string extensionsPhysicalPath)
extensionsPhysicalPathprivate struct storeMetadata(string pluginKey, any pluginMD)
pluginKey - The plugin cache keypluginMD - The plugin's metadata
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||