Packageorg.granite.tide.spring
Classpublic class Spring
InheritanceSpring Inheritance Tide Inheritance flash.events.EventDispatcher

Implementation of the Tide singleton for Spring services



Public Properties
 PropertyDefined by
 Inheritedbusy : Boolean = false
Tide
 InheritedcurrentModulePrefix : String
Tide
 Inheriteddestination : String
RemoteObject destination used
Tide
 Inheriteddisconnected : Boolean = false
Tide
 InheritedshowBusyCursor : Boolean = true
[static]
Tide
Protected Properties
 PropertyDefined by
 Inherited_ro : RemoteObject = null
Tide
 Inheritedro : RemoteObject
Tide
 Inherited_roInitialize : RemoteObject = null
Tide
 InheritedroInitialize : RemoteObject
Tide
 Inherited_rosByDestination : Dictionary
Tide
Public Methods
 MethodDefined by
  
Spring(destination:String)
Spring
 Inherited
addComponent(name:String, type:Class, inConversation:Boolean = false, autoCreate:Boolean = true, restrict:int, overrideIfPresent:Boolean = true):void
Register a Tide component with a specified definition and scan dynamic dependency injections
Tide
 Inherited
addComponentFromInstance(instance:Object, name:String, inConversation:Boolean = false):void
Register a Tide component from an existing instance
Tide
 Inherited
addComponents(types:Array):void
Register many Tide components at once The component definitions are scanned from annotations
Tide
 Inherited
addComponentWithFactory(name:String, type:Class, properties:Object, inConversation:Boolean = false, autoCreate:Boolean = true, restrict:int, overrideIfPresent:Boolean = true):void
Register a Tide component with static dependency injections Dynamic dependency injections are also scanned
Tide
 Inherited
addContextEventListener(type:String, handler:Function = null, remote:Boolean = false):void
Add a context listener for a particular event type
Tide
 Inherited
addEventObserver(eventType:String, componentName:String, methodName:String, remote:Boolean = false, create:Boolean = true, localOnly:Boolean = true):void
Register an event observer
Tide
 Inherited
addExceptionHandler(handlerClass:Class):void
Add an exception handler class The class should implement IExceptionHandler
Tide
 Inherited
addModule(module:Object, appDomain:ApplicationDomain = null):void
Register a Tide module
Tide
 Inherited
addPlugin(plugin:ITidePlugin):void
Register a plugin instance
Tide
  
checkLoggedIn(ctx:BaseContext, component:IComponent, responder:ITideResponder = null):AsyncToken
Spring
 Inherited
Notify the framework that it should wait for a async operation before effectively logging out.
Tide
 Inherited
[static] Internal method to determine current application in both Flex 3 and Flex 4
Tide
 Inherited
getComponentRemoteSync(name:String):int
Return the remote synchronization type of the component
Tide
 Inherited
getComponentRestrict(name:String):int
Return the security restriction of the component
Tide
 Inherited
getComponentScope(name:String):int
Returns the scope of a component
Tide
 Inherited
getContext(contextId:String = null, parentContextId:String = null, create:Boolean = true):BaseContext
Return a context from its id
Tide
  
getInstance(destination:String = null):Spring
[static]
Spring
 Inherited
getManagedInstance(component:Object):Array
Tide
 Inherited
getRemoteObject(componentName:String):RemoteObject
Returns the internal RemoteObject used for a particular component name
Tide
  
getSpringContext(contextId:String = null):Context
Spring
 Inherited
initApplication(autoRegisterUIComponents:Boolean = true):void
Init the Tide application
Tide
 Inherited
internalNameForTypedComponent(name:String):String
[static]
Tide
 Inherited
isComponent(name:String):Boolean
Checks a name is a registered Tide component
Tide
 Inherited
isComponentAutoCreate(name:String):Boolean
Returns the creation policy of a component
Tide
 Inherited
isComponentDefaultProxy(name:String):Boolean
Return the proxy status of the component
Tide
 Inherited
isComponentGlobal(name:String):Boolean
Return if the specific component is defined as global (not in a namespace)
Tide
 Inherited
isComponentInConversation(name:String):Boolean
Returns the scope of a component
Tide
 Inherited
isComponentInEvent(name:String):Boolean
Returns the scope of a component
Tide
 Inherited
isComponentInSession(name:String):Boolean
Returns the scope of a component
Tide
 Inherited
isComponentRestrict(name:String):Boolean
Return the security restriction of the component
Tide
  
isLoggedInFaultHandler(sourceContext:BaseContext, sourceModulePrefix:String, data:Object, componentName:String = null, op:String = null, tideResponder:ITideResponder = null, componentResponder:ComponentResponder = null):void
Spring
  
isLoggedInSuccessHandler(sourceContext:BaseContext, sourceModulePrefix:String, data:Object, componentName:String = null, op:String = null, tideResponder:ITideResponder = null, componentResponder:ComponentResponder = null):void
Spring
 Inherited
isSubcontext(name:String):Boolean
Checks a name is a registered Tide subcontext
Tide
  
login(ctx:BaseContext, component:IComponent, username:String, password:String, responder:ITideResponder = null, charset:String = null):AsyncToken
Spring
 Inherited
processInterceptors(message:IMessage, before:Boolean):void
Tide
 Inherited
removeComponent(name:String):void
Unregister a Tide component and destroys all instances
Tide
 Inherited
removeContextEventListener(type:String, handler:Function):void
Unregister a context event listener
Tide
 Inherited
removeManagedInstance(component:Object):void
Tide
 Inherited
removeModule(module:Object):void
Unregister a Tide module
Tide
 Inherited
removeProxyDescriptor(name:*, value:*):void
Remove descriptor for proxy when value is no more a proxy
Tide
  
[static] Clear Tide singleton (should be used only for testing)
Spring
 Inherited
setComponentAutoCreate(name:String, autoCreate:Boolean):void
Define the creation policy of the component
Tide
 Inherited
setComponentCustomDescriptor(name:String, xmlDescriptor:XML):void
Define the custom XML descriptor for the component
Tide
 Inherited
setComponentGlobal(name:String, global:Boolean):void
Define if the component is defined as global (cannot be in a namespace/subcontext)
Tide
 Inherited
setComponentRemoteSync(name:String, remoteSync:int):void
Define the remote synchronization of the component If false, the component state will never be sent to the server
Tide
 Inherited
setComponentRestrict(name:String, restrict:int):void
Define the security restriction of the component If RESTRICT_YES, the component state will be cleared when user logs out Default value is RESTRICT_UNKNOWN meaning if will be inferred from server definition when possible
Tide
 Inherited
setComponentScope(name:String, scope:int):void
Define the scope of a component
Tide
 Inherited
setManagedInstance(component:Object, context:BaseContext, name:String):void
Tide
  
springLoginFaultHandler(sourceContext:BaseContext, sourceModulePrefix:String, data:Object, username:String, componentName:String = null, op:String = null, tideResponder:ITideResponder = null, componentResponder:ComponentResponder = null):void
Spring
  
springLoginSuccessHandler(sourceContext:BaseContext, sourceModulePrefix:String, data:Object, username:String, componentName:String = null, op:String = null, tideResponder:ITideResponder = null, componentResponder:ComponentResponder = null):void
Spring
 Inherited
tryLogout():void
Try logout.
Tide
Protected Methods
 MethodDefined by
  
init(contextClass:Class, componentClass:Class):void
Spring
  
Spring
  
isLoggedIn():Boolean
Spring
 Inherited
Resets Tide application (mainly used in test cases)
Tide
  
setLoggedIn(value:Boolean):void
Spring
Public Constants
 ConstantDefined by
 InheritedCONTEXT_CREATE : String = "org.granite.tide.contextCreate"
[static]
Tide
 InheritedCONTEXT_DESTROY : String = "org.granite.tide.contextDestroy"
[static]
Tide
 InheritedCONTEXT_FAULT : String = "org.granite.tide.contextFault"
[static]
Tide
 InheritedCONTEXT_RESULT : String = "org.granite.tide.contextResult"
[static]
Tide
 InheritedCONVERSATION_PROPAGATION_TAG : String = "conversationPropagation"
[static]
Tide
 InheritedCONVERSATION_TAG : String = "conversationId"
[static]
Tide
 InheritedDEFAULT_CONTEXT : String = "__DEFAULT_CONTEXT__"
[static]
Tide
 InheritedIS_FIRST_CALL_TAG : String = "org.granite.tide.isFirstCall"
[static]
Tide
 InheritedIS_FIRST_CONVERSATION_CALL_TAG : String = "org.granite.tide.isFirstConversationCall"
[static]
Tide
 InheritedIS_LONG_RUNNING_CONVERSATION_TAG : String = "isLongRunningConversation"
[static]
Tide
 InheritedLOGGED_OUT : String = "org.granite.tide.loggedOut"
[static]
Tide
 InheritedLOGIN : String = "org.granite.tide.login"
[static]
Tide
 InheritedLOGOUT : String = "org.granite.tide.logout"
[static]
Tide
 InheritedPLUGIN_ADD_COMPONENT : String = "org.granite.tide.plugin.addComponent"
[static]
Tide
 InheritedPLUGIN_LOGIN_FAULT : String = "org.granite.tide.plugin.loginFault"
[static]
Tide
 InheritedPLUGIN_LOGIN_SUCCESS : String = "org.granite.tide.plugin.loginSuccess"
[static]
Tide
 InheritedPLUGIN_LOGOUT : String = "org.granite.tide.plugin.logout"
[static]
Tide
 InheritedPLUGIN_SET_CREDENTIALS : String = "org.granite.tide.plugin.setCredentials"
[static]
Tide
 InheritedQCN_BASECONTEXT : String = ""
[static]
Tide
 InheritedQCN_ICOMPONENT : String = ""
[static]
Tide
 InheritedQCN_IENTITY : String = ""
[static]
Tide
 InheritedQCN_ILIST : String = ""
[static]
Tide
 InheritedQCN_IUICOMPONENT : String = ""
[static]
Tide
 InheritedQCN_SUBCONTEXT : String = ""
[static]
Tide
 InheritedRESTRICT_NO : int = 1
[static]
Tide
 InheritedRESTRICT_UNKNOWN : int = 0
[static]
Tide
 InheritedRESTRICT_YES : int = 2
[static]
Tide
 InheritedSCOPE_CONVERSATION : int = 2
[static]
Tide
 InheritedSCOPE_EVENT : int = 3
[static]
Tide
 InheritedSCOPE_SESSION : int = 1
[static]
Tide
 InheritedSCOPE_UNKNOWN : int = 0
[static]
Tide
 InheritedSESSION_EXPIRED : String = "org.granite.tide.sessionExpired"
[static]
Tide
 InheritedSTARTUP : String = "org.granite.tide.startup"
[static]
Tide
 InheritedSYNC_BIDIRECTIONAL : int = 2
[static]
Tide
 InheritedSYNC_NONE : int = 0
[static]
Tide
 InheritedSYNC_SERVER_TO_CLIENT : int = 1
[static]
Tide
 InheritedTYPED_IMPL_PREFIX : String = "__typedImpl__"
[static]
Tide
 InheritedTYPE_SUBCONTEXT : Type
[static]
Tide
 InheritedWAS_LONG_RUNNING_CONVERSATION_CREATED_TAG : String = "wasLongRunningConversationCreated"
[static]
Tide
 InheritedWAS_LONG_RUNNING_CONVERSATION_ENDED_TAG : String = "wasLongRunningConversationEnded"
[static]
Tide
 InheritedWINDOW_CLOSE : String = "globalNotifyWindowClose"
[static]
Tide
 InheritedWINDOW_CREATE : String = "globalNotifyWindowCreate"
[static]
Tide
Constructor detail
Spring()constructor
public function Spring(destination:String)Parameters
destination:String
Method detail
checkLoggedIn()method
public override function checkLoggedIn(ctx:BaseContext, component:IComponent, responder:ITideResponder = null):AsyncTokenParameters
ctx:BaseContext
 
component:IComponent
 
responder:ITideResponder (default = null)

Returns
AsyncToken
getInstance()method 
public static function getInstance(destination:String = null):SpringParameters
destination:String (default = null)

Returns
Spring
getSpringContext()method 
public function getSpringContext(contextId:String = null):ContextParameters
contextId:String (default = null)

Returns
Context
init()method 
protected override function init(contextClass:Class, componentClass:Class):voidParameters
contextClass:Class
 
componentClass:Class
initRemoteObject()method 
protected override function initRemoteObject():void
isLoggedIn()method 
protected override function isLoggedIn():Boolean

Returns
Boolean
isLoggedInFaultHandler()method 
public override function isLoggedInFaultHandler(sourceContext:BaseContext, sourceModulePrefix:String, data:Object, componentName:String = null, op:String = null, tideResponder:ITideResponder = null, componentResponder:ComponentResponder = null):voidParameters
sourceContext:BaseContext
 
sourceModulePrefix:String
 
data:Object
 
componentName:String (default = null)
 
op:String (default = null)
 
tideResponder:ITideResponder (default = null)
 
componentResponder:ComponentResponder (default = null)
isLoggedInSuccessHandler()method 
public override function isLoggedInSuccessHandler(sourceContext:BaseContext, sourceModulePrefix:String, data:Object, componentName:String = null, op:String = null, tideResponder:ITideResponder = null, componentResponder:ComponentResponder = null):voidParameters
sourceContext:BaseContext
 
sourceModulePrefix:String
 
data:Object
 
componentName:String (default = null)
 
op:String (default = null)
 
tideResponder:ITideResponder (default = null)
 
componentResponder:ComponentResponder (default = null)
login()method 
public override function login(ctx:BaseContext, component:IComponent, username:String, password:String, responder:ITideResponder = null, charset:String = null):AsyncTokenParameters
ctx:BaseContext
 
component:IComponent
 
username:String
 
password:String
 
responder:ITideResponder (default = null)
 
charset:String (default = null)

Returns
AsyncToken
resetInstance()method 
public static function resetInstance():void

Clear Tide singleton (should be used only for testing)

setLoggedIn()method 
protected override function setLoggedIn(value:Boolean):voidParameters
value:Boolean
springLoginFaultHandler()method 
public function springLoginFaultHandler(sourceContext:BaseContext, sourceModulePrefix:String, data:Object, username:String, componentName:String = null, op:String = null, tideResponder:ITideResponder = null, componentResponder:ComponentResponder = null):voidParameters
sourceContext:BaseContext
 
sourceModulePrefix:String
 
data:Object
 
username:String
 
componentName:String (default = null)
 
op:String (default = null)
 
tideResponder:ITideResponder (default = null)
 
componentResponder:ComponentResponder (default = null)
springLoginSuccessHandler()method 
public function springLoginSuccessHandler(sourceContext:BaseContext, sourceModulePrefix:String, data:Object, username:String, componentName:String = null, op:String = null, tideResponder:ITideResponder = null, componentResponder:ComponentResponder = null):voidParameters
sourceContext:BaseContext
 
sourceModulePrefix:String
 
data:Object
 
username:String
 
componentName:String (default = null)
 
op:String (default = null)
 
tideResponder:ITideResponder (default = null)
 
componentResponder:ComponentResponder (default = null)