coldbox.system.ioc.scopes

Class CacheBox

railo-context.Component
        extended by coldbox.system.ioc.scopes.CacheBox
Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    All Implemented Interfaces:
    IScope

    I am a scope that talks to CacheBox

    Constructor Summary
    init(any<Injector> injector)
          Configure the scope for operation.
    Method Summary
    any getFromScope(any<Mapping> mapping, [any<struct> initArguments])
         Retrieve an object from scope or create it if not found in scope.
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init(any<Injector> injector)

    Configure the scope for operation

    Parameters:
    injector - The linked WireBox injector: coldbox.system.ioc.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

    Specified by:
    getFromScope in interface IScope
    Parameters:
    mapping - The object mapping: coldbox.system.ioc.config.Mapping
    initArguments - The constructor structure of arguments to passthrough when initializing the instance