coldbox.system.ioc.scopes

Class CFScopes

lucee.Component
    extended by coldbox.system.ioc.scopes.CFScopes
All Implemented Interfaces:
IScope

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- A scope that stores in valid CF scopes

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any injector
          Injector linkage.

    • access = public
    • returntype = any
    true false
    any log
          Log Reference.

    • access = public
    • returntype = any
    true false
    any scopeStorage
          Scope Storage Reference.

    • access = public
    • returntype = any
    true false
    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.
    string getInjector()
    string getLog()
    string getScopeStorage()
    any setInjector(any injector)
    any setLog(any log)
    any setScopeStorage(any scopeStorage)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any<Injector> injector)

    Configure the scope for operation and returns itself

    Parameters:
    injector - The linked WireBox injector

    Property Detail

    injector

    property any injector

    Injector linkage

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    log

    property any log

    Log Reference

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    scopeStorage

    property any scopeStorage

    Scope Storage Reference

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    Method Detail

    exists

    public boolean exists(any<Mapping> mapping)

    Indicates whether an object exists in scope

    Specified by:
    exists in interface IScope
    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

    Specified by:
    getFromScope in interface IScope
    Parameters:
    mapping - The linked WireBox injector
    initArguments - The constructor struct of arguments to passthrough to initialization

    getInjector

    public string getInjector()


    getLog

    public string getLog()


    getScopeStorage

    public string getScopeStorage()


    setInjector

    public any setInjector(any injector)

    Parameters:
    injector

    setLog

    public any setLog(any log)

    Parameters:
    log

    setScopeStorage

    public any setScopeStorage(any scopeStorage)

    Parameters:
    scopeStorage