wirebox.system.ioc.scopes

Class Singleton

lucee.Component
    extended by wirebox.system.ioc.scopes.Singleton
All Implemented Interfaces:
IScope

I am the singleton scope

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any injector)
          Configure the scope for operation.
    Method Summary
    void clear()
         Clear the singletons scope and re-create it.
    any getFromScope(any mapping, [any initArguments])
         Retrieve an object from scope or create it if not found in scope.
    any getSingletons()
         Get all singletons structure.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any injector)

    Configure the scope for operation

    Parameters:
    injector - The linked WireBox injector: wirebox.system.ioc.Injector

    Method Detail

    clear

    public void clear()

    Clear the singletons scope and re-create it


    getFromScope

    public any getFromScope(any 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 object mapping: wirebox.system.ioc.config.Mapping
    initArguments - The constructor structure of arguments to passthrough when initializing the instance

    getSingletons

    public any getSingletons()

    Get all singletons structure