Packageorg.spicefactory.parsley.core.bootstrap
Interfacepublic interface BootstrapConfig
Implementors DefaultBootstrapConfig

Represents the configuration to be used to create a new Context. These configurations are applied hierarchical, meaning that anything not explicitly set on this instance will be fetched from the configuration of the parent Context or, in case there is no parent or a particular option is not explicitly set on the parent, from BootstrapDefaults.config.



Public Properties
 PropertyDefined By
  description : String
The description to use in log output for the new Context.
BootstrapConfig
  domain : ApplicationDomain
The ApplicationDomain to be used for reflecting on managed objects.
BootstrapConfig
  domainProvider : ApplicationDomainProvider
The provider to use for determining the ApplicationDomain when it is not specified explicitly.
BootstrapConfig
  findParentInView : Boolean
Specifies whether the new Context should automatically find a parent Context in the view hierarchy above the view root.
BootstrapConfig
  localScopeUuid : String
The unique id to assign to the local scope of this Context.
BootstrapConfig
  messageSettings : MessageSettings
[read-only] The settings for the MessageRouter of the new Context.
BootstrapConfig
  parents : Array
[read-only] All parent Contexts that the new Context should inherit from.
BootstrapConfig
  properties : ConfigurationProperties
[read-only] Properties that may be used to build or process ObjectDefinitions.
BootstrapConfig
  scopeExtensions : ScopeExtensionRegistry
[read-only] A registry of scope-wide extensions.
BootstrapConfig
  services : ServiceRegistry
[read-only] The services to be used for creating a new Context.
BootstrapConfig
  viewRoot : DisplayObject
The initial view root to be used for view wiring.
BootstrapConfig
  viewSettings : ViewSettings
[read-only] The settings for the ViewManager of the new Context.
BootstrapConfig
Public Methods
 MethodDefined By
  
Adds an assembler for ObjectDefinitionDecorators that should get applied for each managed object.
BootstrapConfig
  
addParent(parent:Context):void
Adds a parent that the new Context should inherit from.
BootstrapConfig
  
Adds a configuration processor.
BootstrapConfig
  
addScope(name:String, inherited:Boolean = true, uuid:String = null):void
Adds a custom scope to the new Context.
BootstrapConfig
  
Returns all decorator assemblers to apply to object definitions, including the ones added to this instance explicitly and those inherited from parent Contexts.
BootstrapConfig
Property Detail
descriptionproperty
description:String

The description to use in log output for the new Context.


Implementation
    public function get description():String
    public function set description(value:String):void
domainproperty 
domain:ApplicationDomain

The ApplicationDomain to be used for reflecting on managed objects.


Implementation
    public function get domain():ApplicationDomain
    public function set domain(value:ApplicationDomain):void
domainProviderproperty 
domainProvider:ApplicationDomainProvider

The provider to use for determining the ApplicationDomain when it is not specified explicitly.


Implementation
    public function get domainProvider():ApplicationDomainProvider
    public function set domainProvider(value:ApplicationDomainProvider):void
findParentInViewproperty 
findParentInView:Boolean

Specifies whether the new Context should automatically find a parent Context in the view hierarchy above the view root. The default is true. When a parent is found in the view hierarchy it will get added to the list of Contexts specified explicitly on this instance.


Implementation
    public function get findParentInView():Boolean
    public function set findParentInView(value:Boolean):void
localScopeUuidproperty 
localScopeUuid:String

The unique id to assign to the local scope of this Context. Will normally generated automatically and only needs to be set explicitly if you need point to point messaging between distinct scopes and want to assign ids which are meaningful for your application.


Implementation
    public function get localScopeUuid():String
    public function set localScopeUuid(value:String):void
messageSettingsproperty 
messageSettings:MessageSettings  [read-only]

The settings for the MessageRouter of the new Context.


Implementation
    public function get messageSettings():MessageSettings
parentsproperty 
parents:Array  [read-only]

All parent Contexts that the new Context should inherit from.


Implementation
    public function get parents():Array
propertiesproperty 
properties:ConfigurationProperties  [read-only]

Properties that may be used to build or process ObjectDefinitions.


Implementation
    public function get properties():ConfigurationProperties
scopeExtensionsproperty 
scopeExtensions:ScopeExtensionRegistry  [read-only]

A registry of scope-wide extensions.


Implementation
    public function get scopeExtensions():ScopeExtensionRegistry
servicesproperty 
services:ServiceRegistry  [read-only]

The services to be used for creating a new Context.


Implementation
    public function get services():ServiceRegistry
viewRootproperty 
viewRoot:DisplayObject

The initial view root to be used for view wiring. Additional view roots can be added later through Context.viewManager.addViewRoot().


Implementation
    public function get viewRoot():DisplayObject
    public function set viewRoot(value:DisplayObject):void
viewSettingsproperty 
viewSettings:ViewSettings  [read-only]

The settings for the ViewManager of the new Context.


Implementation
    public function get viewSettings():ViewSettings
Method Detail
addDecoratorAssembler()method
public function addDecoratorAssembler(assembler:DecoratorAssembler):void

Adds an assembler for ObjectDefinitionDecorators that should get applied for each managed object.

Parameters

assembler:DecoratorAssembler — the decorator assembler to add

addParent()method 
public function addParent(parent:Context):void

Adds a parent that the new Context should inherit from.

Parameters

parent:Context

addProcessor()method 
public function addProcessor(processor:ConfigurationProcessor):void

Adds a configuration processor.

Parameters

processor:ConfigurationProcessor — the processor to add

addScope()method 
public function addScope(name:String, inherited:Boolean = true, uuid:String = null):void

Adds a custom scope to the new Context. The new scope will be added to the scopes which may be inherited from a parent Context.

Parameters

name:String — the name of the scope
 
inherited:Boolean (default = true) — whether child Contexts should inherit this scope
 
uuid:String (default = null) — the unique id of this scope

getDecoratorAssemblers()method 
public function getDecoratorAssemblers(status:LookupStatus = null):Array

Returns all decorator assemblers to apply to object definitions, including the ones added to this instance explicitly and those inherited from parent Contexts.

Parameters

status:LookupStatus (default = null) — optional paramater to avoid duplicate lookups, for internal use only

Returns
Array — all decorator assemblers to apply to object definitions