Packageorg.spicefactory.parsley.core.registry.impl
Classpublic class DefaultSingletonObjectDefinition
InheritanceDefaultSingletonObjectDefinition Inheritance AbstractObjectDefinition Inheritance Object
Implements SingletonObjectDefinition

Default implementation of the SingletonObjectDefinition interface.



Public Properties
 PropertyDefined By
  asyncInitConfig : AsyncInitConfig
The configuration for asynchronously initializing objects.
DefaultSingletonObjectDefinition
 InheritedconstructorArgs : ConstructorArgRegistry
[read-only]
AbstractObjectDefinition
 InheriteddestroyMethod : String
The method to invoke on the configured object before it gets destroyed and removed from the Context.
AbstractObjectDefinition
 Inheritedfrozen : Boolean
[read-only] Indicates whether this definition has been frozen.
AbstractObjectDefinition
 Inheritedid : String
[read-only]
AbstractObjectDefinition
 InheritedinitMethod : String
The method to invoke on the configured object after it has been fully initialized.
AbstractObjectDefinition
 InheritedinjectorMethods : MethodRegistry
[read-only]
AbstractObjectDefinition
 Inheritedinstantiator : ObjectInstantiator
The object responsible for creating instances from this definition.
AbstractObjectDefinition
  lazy : Boolean
[read-only]
DefaultSingletonObjectDefinition
 InheritedobjectLifecycle : LifecycleListenerRegistry
[read-only]
AbstractObjectDefinition
  order : int
[read-only]
DefaultSingletonObjectDefinition
 InheritedprocessorFactories : Array
[read-only] Returns all processor factories added to this instance.
AbstractObjectDefinition
 Inheritedproperties : PropertyRegistry
[read-only]
AbstractObjectDefinition
 Inheritedregistry : ObjectDefinitionRegistry
[read-only] The registry this definition is associated with.
AbstractObjectDefinition
 Inheritedtype : ClassInfo
[read-only] The type of the configured object.
AbstractObjectDefinition
Public Methods
 MethodDefined By
  
DefaultSingletonObjectDefinition(type:ClassInfo, id:String, registry:ObjectDefinitionRegistry, lazy:Boolean = false, order:int, parent:ObjectDefinition = null)
Creates a new instance.
DefaultSingletonObjectDefinition
 Inherited
Adds the specified processor factory to this definition.
AbstractObjectDefinition
 Inherited
freeze():void
Freezes this object definition.
AbstractObjectDefinition
 Inherited
Populates this definition with all configuration artifacts from the specified source.
AbstractObjectDefinition
Property Detail
asyncInitConfigproperty
asyncInitConfig:AsyncInitConfig

The configuration for asynchronously initializing objects.


Implementation
    public function get asyncInitConfig():AsyncInitConfig
    public function set asyncInitConfig(value:AsyncInitConfig):void
lazyproperty 
lazy:Boolean  [read-only]


Implementation
    public function get lazy():Boolean
orderproperty 
order:int  [read-only]


Implementation
    public function get order():int
Constructor Detail
DefaultSingletonObjectDefinition()Constructor
public function DefaultSingletonObjectDefinition(type:ClassInfo, id:String, registry:ObjectDefinitionRegistry, lazy:Boolean = false, order:int, parent:ObjectDefinition = null)

Creates a new instance.

Parameters
type:ClassInfo — the type to create a definition for
 
id:String — the id the object should be registered with
 
registry:ObjectDefinitionRegistry — the registry this definition belongs to
 
lazy:Boolean (default = false) — whether the object is lazy initializing
 
order:int (default = NaN) — the initialization order for non-lazy singletons
 
parent:ObjectDefinition (default = null) — the parent definition containing shared configuration for this definition