Packageorg.spicefactory.parsley.context
Classpublic class ContextBuilderSetup
InheritanceContextBuilderSetup Inheritance Object

Allows to specify the options for a ContextBuilder before creating it.



Public Methods
 MethodDefined By
  
description(description:String):ContextBuilderSetup
Sets a description to be passed to the Context for logging or monitoring purposes.
ContextBuilderSetup
  
domain(domain:ApplicationDomain):ContextBuilderSetup
Sets the ApplicationDomain to use for reflection.
ContextBuilderSetup
  
Specifies whether the new Context should automatically find a parent Context in the view hierarchy above the view root.
ContextBuilderSetup
  
Sets the uuid for the local scope of the new Context.
ContextBuilderSetup
  
Allows to specify messaging settings.
ContextBuilderSetup
  
Creates a new ContextBuilder based on the settings of this setup instance.
ContextBuilderSetup
  
Sets the parent to use for the target Context to look up shared dependencies.
ContextBuilderSetup
  
scope(scope:String, inherited:Boolean = true, uuid:String = null):ContextBuilderSetup
Sets the ApplicationDomain to use for reflection.
ContextBuilderSetup
  
Allows to register scope extensions.
ContextBuilderSetup
  
Allows to specify implementations or decorators for the IOC kernel services.
ContextBuilderSetup
  
viewRoot(viewRoot:DisplayObject):ContextBuilderSetup
Sets the view root the target Context should use to listen for bubbling events from components below that wish to get wired to the Context.
ContextBuilderSetup
  
Allows to specify settings for view wiring.
ContextBuilderSetup
Method Detail
description()method
public function description(description:String):ContextBuilderSetup

Sets a description to be passed to the Context for logging or monitoring purposes.

Parameters

description:String — a description to be passed to the Context for logging or monitoring purposes

Returns
ContextBuilderSetup — this builder instance for method chaining
domain()method 
public function domain(domain:ApplicationDomain):ContextBuilderSetup

Sets the ApplicationDomain to use for reflection.

Parameters

domain:ApplicationDomain — the ApplicationDomain to use for reflection

Returns
ContextBuilderSetup — this builder instance for method chaining
findParentInView()method 
public function findParentInView(findParent:Boolean):ContextBuilderSetup

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.

Parameters

findParent:Boolean — whether the new Context should automatically find a parent Context in the view hierarchy above the view root

Returns
ContextBuilderSetup — this builder instance for method chaining
localScopeUuid()method 
public function localScopeUuid(uuid:String):ContextBuilderSetup

Sets the uuid for the local scope of the new Context.

Parameters

uuid:String — the uuid for the local scope of the new Context

Returns
ContextBuilderSetup — this builder instance for method chaining
messageSettings()method 
public function messageSettings():MessageSettingsBuilder

Allows to specify messaging settings.

Returns
MessageSettingsBuilder — a builder that allows to specify messaging settings
newBuilder()method 
public function newBuilder():ContextBuilder

Creates a new ContextBuilder based on the settings of this setup instance.

Returns
ContextBuilder — a new ContextBuilder based on the settings of this setup instance
parent()method 
public function parent(parent:Context):ContextBuilderSetup

Sets the parent to use for the target Context to look up shared dependencies. Will usually automatically detected in the view hierarchy and only has to be specified if this is not possible, for example when the parent Context is not associated with a view root DisplayObject.

Parameters

parent:Context — the parent to use for the target Context to look up shared dependencies

Returns
ContextBuilderSetup — this builder instance for method chaining
scope()method 
public function scope(scope:String, inherited:Boolean = true, uuid:String = null):ContextBuilderSetup

Sets the ApplicationDomain to use for reflection.

Parameters

scope:String — the ApplicationDomain to use for reflection
 
inherited:Boolean (default = true)
 
uuid:String (default = null)

Returns
ContextBuilderSetup — this builder instance for method chaining
scopeExtensions()method 
public function scopeExtensions():ScopeExtensionsBuilder

Allows to register scope extensions.

Returns
ScopeExtensionsBuilder — a builder that allows to register scope extensions
services()method 
public function services():ServiceRegistryBuilder

Allows to specify implementations or decorators for the IOC kernel services.

Returns
ServiceRegistryBuilder — a builder that allows to specify factories for the IOC kernel services
viewRoot()method 
public function viewRoot(viewRoot:DisplayObject):ContextBuilderSetup

Sets the view root the target Context should use to listen for bubbling events from components below that wish to get wired to the Context.

Parameters

viewRoot:DisplayObject — the view root for the target Context

Returns
ContextBuilderSetup — this builder instance for method chaining
viewSettings()method 
public function viewSettings():ViewSettingsBuilder

Allows to specify settings for view wiring.

Returns
ViewSettingsBuilder — a builder that allows to specify settings for view wiring