Packageorg.springextensions.actionscript.ioc.factory.xml
SVN browsingNamespaceHandlerSupport.as
FisheyeNamespaceHandlerSupport.as
Classpublic class NamespaceHandlerSupport
ImplementsINamespaceHandler
SubclassesMessagingNamespaceHandler, RPCNamespaceHandler, StageProcessorNamespaceHandler, TaskNamespaceHandler, UtilNamespaceHandler

Offers basic support for namespace handlers. This class should not be instantiated directly, but subclassed to add object definition parsers.

Subclasses can register new object definition parsers via the "registerObjectDefinitionParser" method.



Documentation reference: coding an inamespacehandler implementation


Public Methods
 MethodDefined by
  
NamespaceHandlerSupport
  
getNamespace():Namespace
Return the namespace supported by this namespace handler.
NamespaceHandlerSupport
  
Parses the given node and returns the resulting object definition.
NamespaceHandlerSupport
Protected Methods
 MethodDefined by
  
Registers an object definition parser.
NamespaceHandlerSupport
Constructor detail
NamespaceHandlerSupport()constructor
public function NamespaceHandlerSupport(ns:Namespace)

Parameters
ns:Namespace
Method detail
getNamespace()method
public function getNamespace():Namespace

Return the namespace supported by this namespace handler.

Returns
Namespace
parse()method 
public function parse(node:XML, parser:XMLObjectDefinitionsParser):IObjectDefinition

Parses the given node and returns the resulting object definition.

Parameters
node:XML — the xml node to parse
 
parser:XMLObjectDefinitionsParser — the root xml parser (XXX this might change to a parser context object)

Returns
IObjectDefinition
registerObjectDefinitionParser()method 
protected function registerObjectDefinitionParser(element:String, parser:IObjectDefinitionParser):void

Registers an object definition parser.

Parameters
element:String — the name of the node that the parser supports
 
parser:IObjectDefinitionParser — the object definition parser