WEB-INF.cftags.component coldbox.system.ioc.ColdboxFactory
Create Config Beans, Controller, Cache Manager and Plugins of the current running application
Constructor Summary | |
---|---|
init([string COLDBOX_APP_KEY])
|
Method Summary | |
---|---|
any<CacheFactory>
|
getCacheBox()
Get the CacheBox reference. |
Controller
|
getColdbox()
Get the coldbox controller reference: coldbox. |
any<IColdboxApplicationCache>
|
getColdboxOCM([string cacheName='default'])
Get ColdboxOCM: coldbox. |
ConfigBean
|
getConfigBean()
Returns an application's config bean: coldbox. |
DatasourceBean
|
getDatasource([string alias])
I will return to you a datasourceBean according to the alias of the datasource you wish to get from the configstruct: coldbox. |
any
|
getInstance(any name, [any dsl], [any<struct> initArguments])
Locates, Creates, Injects and Configures an object model instance. |
any
|
getInterceptor([string interceptorName], [boolean deepSearch='false'])
Get an interceptor. |
LogBox
|
getLogBox()
Get the LogBox reference. |
Logger
|
getLogger(any category)
Get a named logger reference. |
MailSettingsBean
|
getMailSettings()
I will return to you a mailsettingsBean modeled after your mail settings in your config file. |
any
|
getPlugin([any plugin], [boolean customPlugin='false'], [boolean newInstance='false'], [any module=''], [boolean init='true'])
Plugin factory, returns a new or cached instance of a plugin. |
struct
|
getRequestCollection([boolean private='false'])
Tries to retrieve the request collection. |
RequestContext
|
getRequestContext()
Tries to retrieve the request context object. |
Logger
|
getRootLogger()
Get the root logger reference. |
private Util
|
getUtil()
Create and return a util object. |
Injector
|
getWireBox()
Get the WireBox Injector reference. |
Methods inherited from class WEB-INF.cftags.component |
---|
None |
Constructor Detail |
---|
COLDBOX_APP_KEY
- The application key to useMethod Detail |
---|
Get the CacheBox reference.
Get the coldbox controller reference: coldbox.system.web.Controller
Get ColdboxOCM: coldbox.system.cache.CacheManager or new CacheBox providers as coldbox.system.cache.IColdboxApplicationCache
cacheName
- The cache name to retrieveReturns an application's config bean: coldbox.system.core.collections.ConfigBean
I will return to you a datasourceBean according to the alias of the datasource you wish to get from the configstruct: coldbox.system.core.db.DatasourceBean
alias
- The alias of the datasource to get from the configstruct (alias property in the config file)Locates, Creates, Injects and Configures an object model instance
name
- The mapping name or CFC instance path to try to build updsl
- The dsl string to use to retrieve the instance model object, mutually exclusive with 'name'initArguments
- The constructor structure of arguments to passthrough when initializing the instanceGet an interceptor
interceptorName
- The name of the interceptor to search fordeepSearch
- By default we search the cache for the interceptor reference. If true, we search all the registered interceptor states for a match.Get the LogBox reference.
Get a named logger reference.
category
- The category name to use in this logger or pass in the target object will log from and we will inspect the object and use its metadata name.I will return to you a mailsettingsBean modeled after your mail settings in your config file.
Plugin factory, returns a new or cached instance of a plugin.
plugin
- The Plugin object's name to instantiatecustomPlugin
- Used internally to create custom plugins.newInstance
- If true, it will create and return a new plugin. No caching or persistance.module
- The module to retrieve the plugin frominit
- Auto init() the plugin upon constructionTries to retrieve the request collection
private
- Get the request collection or private request collectionTries to retrieve the request context object
Get the root logger reference.
Create and return a util object
Get the WireBox Injector reference.