|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.interfacecoldbox.system.ioc.IInjector
public interface IInjector
An interface that enables any CFC to act like a parent injector within WireBox
Method Summary | |
---|---|
any<boolean> |
containsInstance(any name)
Checks if this injector can locate a model instance or not |
any |
getInstance([any name], [any dsl], [any<struct> initArguments], [any targetObject=''])
Locates, Creates, Injects and Configures an object model instance |
any<Injector> |
getParent()
Get a reference to the parent injector instance, else an empty simple string meaning nothing is set |
void |
setParent(any<Injector> injector)
Link a parent Injector with this injector |
void |
shutdown()
Shutdown the injector gracefully by calling the shutdown events internally |
Methods inherited from class WEB-INF.cftags.interface |
---|
|
Method Detail |
---|
public any<boolean> containsInstance(any name)
name
- The object name or alias to search for if this container can locate it or has knowledge of itpublic any getInstance([any name], [any dsl], [any<struct> initArguments], [any targetObject=''])
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 lookupspublic any<Injector> getParent()
public void setParent(any<Injector> injector)
injector
- A WireBox Injector to assign as a parent to this Injectorpublic void shutdown()
|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |