| Package | org.spicefactory.parsley.core.registry.impl |
| Class | public class DefaultSingletonObjectDefinition |
| Inheritance | DefaultSingletonObjectDefinition AbstractObjectDefinition Object |
| Implements | SingletonObjectDefinition |
| Property | Defined By | ||
|---|---|---|---|
| asyncInitConfig : AsyncInitConfig
The configuration for asynchronously initializing objects. | DefaultSingletonObjectDefinition | ||
![]() | constructorArgs : ConstructorArgRegistry [read-only]
| AbstractObjectDefinition | |
![]() | destroyMethod : String
The method to invoke on the configured object before it gets destroyed and removed from the Context. | AbstractObjectDefinition | |
![]() | frozen : Boolean [read-only]
Indicates whether this definition has been frozen. | AbstractObjectDefinition | |
![]() | id : String [read-only]
| AbstractObjectDefinition | |
![]() | initMethod : String
The method to invoke on the configured object after it has been fully initialized. | AbstractObjectDefinition | |
![]() | injectorMethods : MethodRegistry [read-only]
| AbstractObjectDefinition | |
![]() | instantiator : ObjectInstantiator
The object responsible for creating instances from this definition. | AbstractObjectDefinition | |
| lazy : Boolean [read-only]
| DefaultSingletonObjectDefinition | ||
![]() | objectLifecycle : LifecycleListenerRegistry [read-only]
| AbstractObjectDefinition | |
| order : int [read-only]
| DefaultSingletonObjectDefinition | ||
![]() | processorFactories : Array [read-only]
Returns all processor factories added to this instance. | AbstractObjectDefinition | |
![]() | properties : PropertyRegistry [read-only]
| AbstractObjectDefinition | |
![]() | registry : ObjectDefinitionRegistry [read-only]
The registry this definition is associated with. | AbstractObjectDefinition | |
![]() | type : ClassInfo [read-only]
The type of the configured object. | AbstractObjectDefinition | |
| Method | Defined By | ||
|---|---|---|---|
DefaultSingletonObjectDefinition(type:ClassInfo, id:String, registry:ObjectDefinitionRegistry, lazy:Boolean = false, order:int, parent:ObjectDefinition = null)
Creates a new instance. | DefaultSingletonObjectDefinition | ||
![]() | addProcessorFactory(factory:ObjectProcessorFactory):void
Adds the specified processor factory to this definition. | AbstractObjectDefinition | |
![]() | freeze():void
Freezes this object definition. | AbstractObjectDefinition | |
![]() | populateFrom(source:ObjectDefinition):void
Populates this definition with all configuration artifacts from the specified source. | AbstractObjectDefinition | |
| asyncInitConfig | property |
asyncInitConfig:AsyncInitConfigThe configuration for asynchronously initializing objects.
public function get asyncInitConfig():AsyncInitConfig public function set asyncInitConfig(value:AsyncInitConfig):void| lazy | property |
lazy:Boolean [read-only]
public function get lazy():Boolean| order | property |
order:int [read-only]
public function get order():int| DefaultSingletonObjectDefinition | () | Constructor |
public function DefaultSingletonObjectDefinition(type:ClassInfo, id:String, registry:ObjectDefinitionRegistry, lazy:Boolean = false, order:int, parent:ObjectDefinition = null)Creates a new instance.
Parameterstype: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
|