coldbox.system.ioc.scopes

Interface IScope

coldbox.system.ioc.scopes.IScope
Class Attributes:
None
All Known Implementing Classes:
CacheBox , CFScopes , NoScope , RequestScope , Singleton

The main interface to produce WireBox storage scopes

Constructor Summary
init(any<Injector> injector)
      Configure the scope for operation and returns itself.
Method Summary
any getFromScope(any<Mapping> mapping, [any<struct> initArguments])
     Retrieve an object from scope or create it if not found in scope.

Constructor Detail

init

public init(any<Injector> injector)

Configure the scope for operation and returns itself

Parameters:
injector - The linked WireBox injector

Method Detail

getFromScope

public any getFromScope(any<Mapping> mapping, [any<struct> initArguments])

Retrieve an object from scope or create it if not found in scope

Parameters:
mapping - The object mapping
initArguments - The constructor structure of arguments to passthrough when initializing the instance