coldbox.system.ioc.IInjector
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- An interface that enables any CFC to act like a parent injector within WireBox.
Method Summary | |
---|---|
boolean
|
containsInstance(any name)
Checks if this injector can locate a model instance or not. |
any
|
getInstance([any name], [any dsl], [struct initArguments], [any targetObject])
Locates, Creates, Injects and Configures an object model instance. |
any
|
getParent()
Get a reference to the parent injector instance, else an empty simple string meaning nothing is set. |
any
|
setParent(any<Injector> injector)
Link a parent Injector with this injector and return itself. |
any
|
shutdown()
Shutdown the injector gracefully by calling the shutdown events internally. |
Method Detail |
---|
Checks if this injector can locate a model instance or not
name
- The object name or alias to search for if this container can locate it or has knowledge of itLocates, 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 instancetargetObject
- The object requesting the dependency, usually only used by DSL lookupsGet a reference to the parent injector instance, else an empty simple string meaning nothing is set
Link a parent Injector with this injector and return itself
injector
- A WireBox Injector to assign as a parent to this InjectorShutdown the injector gracefully by calling the shutdown events internally