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
 Inheritedfrozen : Boolean
[read-only] Indicates whether this definition has been frozen.
AbstractObjectDefinition
 Inheritedid : String
[read-only]
AbstractObjectDefinition
 Inheritedinstantiator : ObjectInstantiator
The object responsible for creating instances from this definition.
AbstractObjectDefinition
  lazy : Boolean
[read-only]
DefaultSingletonObjectDefinition
  order : int
[read-only]
DefaultSingletonObjectDefinition
 Inheritedprocessors : Array
[read-only] Returns all processor factories added to this instance.
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)
Creates a new instance.
DefaultSingletonObjectDefinition
 Inherited
Adds the specified processor to this definition.
AbstractObjectDefinition
 Inherited
freeze():void
Freezes this object definition.
AbstractObjectDefinition
 Inherited
getAttribute(key:Object):Object
Returns the attribute for the specified key or null if no such attribute exists.
AbstractObjectDefinition
 Inherited
Populates this definition with all configuration artifacts from the specified source.
AbstractObjectDefinition
 Inherited
setAttribute(key:Object, value:Object):void
Sets the attribute for the specified key and value.
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)

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