coldbox.system.ioc.scopes

Interface IScope

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

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- The main interface to produce WireBox storage scopes

Class Attributes:
None
Constructor Summary
init(any<Injector> injector)
      Configure the scope for operation and returns itself.
Method Summary
boolean exists(any<Mapping> mapping)
     Indicates whether an object exists in scope.
any getFromScope(any<Mapping> mapping, [any 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

exists

public boolean exists(any<Mapping> mapping)

Indicates whether an object exists in scope

Parameters:
mapping - The linked WireBox injector
Returns:
coldbox.system.ioc.scopes.IScope

getFromScope

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

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

Parameters:
mapping - The linked WireBox injector
initArguments - The constructor struct of arguments to passthrough to initialization