Packageorg.spicefactory.parsley.core.registry
Interfacepublic interface SingletonObjectDefinition extends ObjectDefinition
Implementors DefaultSingletonObjectDefinition, SingletonObjectDefinitionWrapper

Represents the configuration for a singleton object. Such an object has additional properties not needed for dynamic or nested object definitions.



Public Properties
 PropertyDefined By
  asyncInitConfig : AsyncInitConfig
The configuration for asynchronously initializing objects.
SingletonObjectDefinition
 Inheritedfrozen : Boolean
[read-only] Indicates whether this definition has been frozen.
ObjectDefinition
 Inheritedid : String
[read-only] The id the object should be registered with.
ObjectDefinition
 Inheritedinstantiator : ObjectInstantiator
The object responsible for creating instances from this definition.
ObjectDefinition
  lazy : Boolean
[read-only] Indicates whether this object should be lazily initialized.
SingletonObjectDefinition
  order : int
[read-only] The processing order for this object.
SingletonObjectDefinition
 Inheritedprocessors : Array
[read-only] Returns all processor factories added to this instance.
ObjectDefinition
 Inheritedregistry : ObjectDefinitionRegistry
[read-only] The registry this definition is associated with.
ObjectDefinition
 Inheritedtype : ClassInfo
[read-only] The type of the configured object.
ObjectDefinition
Public Methods
 MethodDefined By
 Inherited
Adds the specified processor to this definition.
ObjectDefinition
 Inherited
freeze():void
Freezes this object definition.
ObjectDefinition
 Inherited
getAttribute(key:Object):Object
Returns the attribute for the specified key or null if no such attribute exists.
ObjectDefinition
 Inherited
setAttribute(key:Object, value:Object):void
Sets the attribute for the specified key and value.
ObjectDefinition
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]

Indicates whether this object should be lazily initialized. If set to false the object will be instantiated upon Context initialization.


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

The processing order for this object. Only has an effect for non-lazy singletons. Those are instantiated when the Context initializes and this property allows to determine the initialization order of these singletons. Will be processed in ascending order.


Implementation
    public function get order():int