|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.ioc.scopes.Singleton
public class Singleton
I am the singleton scope
Constructor Summary | |
---|---|
init(any<Injector> injector)
Configure the scope for operation |
Method Summary | |
---|---|
void |
clear()
Clear the singletons scope and re-create it |
any |
getFromScope(any<Mapping> mapping, [any<struct> initArguments])
Retrieve an object from scope or create it if not found in scope |
any<java.util.concurrent.ConcurrentHashMap> |
getSingletons()
Get all singletons structure |
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init(any<Injector> injector)
injector
- The linked WireBox injector: coldbox.system.ioc.InjectorMethod Detail |
---|
public void clear()
public any getFromScope(any<Mapping> mapping, [any<struct> initArguments])
getFromScope
in interface
IScope
mapping
- The object mapping: coldbox.system.ioc.config.MappinginitArguments
- The constructor structure of arguments to passthrough when initializing the instancepublic any<java.util.concurrent.ConcurrentHashMap> getSingletons()
|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |