Packageorg.granite.tide.impl
Classpublic class ComponentStore

ComponentStore stores component descriptors



Public Methods
 MethodDefined by
  
ComponentStore(tide:Tide, contextManager:IContextManager)
ComponentStore
  
addModule(module:Object, appDomain:ApplicationDomain = null):void
Register a Tide module
ComponentStore
  
addSubcontext(name:String):void
Register a Tide namespace
ComponentStore
  
getObserversByType(type:String):ArrayCollection
Return list of observers by event type
ComponentStore
  
isComponent(name:String):Boolean
Checks a name is a registered Tide component
ComponentStore
  
removeComponent(name:String):void
Unregister a Tide component and destroys all instances
ComponentStore
  
removeComponentDescriptor(name:String):void
ComponentStore
  
removeModule(module:Object):void
Unregister a Tide module
ComponentStore
  
setComponentGlobal(name:String, global:Boolean):void
Define if the component is defined as global (cannot be in a namespace/subcontext)
ComponentStore
  
setComponentRemoteSync(name:String, remoteSync:int):void
Define the remote synchronization of the component If NONE, the component state will never be sent to the server
ComponentStore
  
trackModuleCreation(moduleInstance:Object):void
ComponentStore
Constructor detail
ComponentStore()constructor
public function ComponentStore(tide:Tide, contextManager:IContextManager)Parameters
tide:Tide
 
contextManager:IContextManager
Method detail
addModule()method
public function addModule(module:Object, appDomain:ApplicationDomain = null):void

Register a Tide module

Parameters
module:Object — the module class or instance (that may implement ITideModule)
 
appDomain:ApplicationDomain (default = null) — the Flex application domain for modules loaded dynamically
addSubcontext()method 
public function addSubcontext(name:String):void

Register a Tide namespace

Parameters
name:String — component name
getObserversByType()method 
public function getObserversByType(type:String):ArrayCollection

Return list of observers by event type

Parameters
type:String — event type

Returns
ArrayCollection — list of observer names
isComponent()method 
public function isComponent(name:String):Boolean

Checks a name is a registered Tide component

Parameters
name:String — component name

Returns
Boolean — true if there is a component with this name
removeComponent()method 
public function removeComponent(name:String):void

Unregister a Tide component and destroys all instances

Parameters
name:String — component name
removeComponentDescriptor()method 
public function removeComponentDescriptor(name:String):voidParameters
name:String
removeModule()method 
public function removeModule(module:Object):void

Unregister a Tide module

Parameters
module:Object — the module class or instance (that must implement ITideModule)
setComponentGlobal()method 
public function setComponentGlobal(name:String, global:Boolean):void

Define if the component is defined as global (cannot be in a namespace/subcontext)

Parameters
name:String — component name
 
global:Boolean — true if non component cannot be in a namespace/subcontext
setComponentRemoteSync()method 
public function setComponentRemoteSync(name:String, remoteSync:int):void

Define the remote synchronization of the component If NONE, the component state will never be sent to the server

Parameters
name:String — component name
 
remoteSync:int — true if the component should be remotely synchronized
trackModuleCreation()method 
public function trackModuleCreation(moduleInstance:Object):voidParameters
moduleInstance:Object