lucee.Componentwirebox.system.ioc.scopes.Singleton
I am the singleton scope
Constructor Summary | |
---|---|
init(any injector)
Configure the scope for operation. |
Method Summary | |
---|---|
void
|
clear()
Clear the singletons scope and re-create it. |
any
|
getFromScope(any mapping, [any initArguments])
Retrieve an object from scope or create it if not found in scope. |
any
|
getSingletons()
Get all singletons structure. |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Configure the scope for operation
injector
- The linked WireBox injector: wirebox.system.ioc.InjectorMethod Detail |
---|
Clear the singletons scope and re-create it
Retrieve an object from scope or create it if not found in scope
getFromScope
in interface
IScope
mapping
- The object mapping: wirebox.system.ioc.config.MappinginitArguments
- The constructor structure of arguments to passthrough when initializing the instanceGet all singletons structure