| Package | org.springextensions.actionscript.ioc.factory.xml |
| SVN browsing | NamespaceHandlerSupport.as |
| Fisheye | NamespaceHandlerSupport.as |
| Class | public class NamespaceHandlerSupport |
| Implements | INamespaceHandler |
| Subclasses | MessagingNamespaceHandler, RPCNamespaceHandler, StageProcessorNamespaceHandler, TaskNamespaceHandler, UtilNamespaceHandler |
Subclasses can register new object definition parsers via the "registerObjectDefinitionParser" method.
Documentation reference: coding an inamespacehandler implementation
| Method | Defined by | ||
|---|---|---|---|
|
NamespaceHandlerSupport(ns:Namespace)
| NamespaceHandlerSupport | ||
|
getNamespace():Namespace
Return the namespace supported by this namespace handler.
| NamespaceHandlerSupport | ||
|
Parses the given node and returns the resulting object definition.
| NamespaceHandlerSupport | ||
| Method | Defined by | ||
|---|---|---|---|
|
registerObjectDefinitionParser(element:String, parser:IObjectDefinitionParser):void
Registers an object definition parser.
| NamespaceHandlerSupport | ||
| NamespaceHandlerSupport | () | constructor |
public function NamespaceHandlerSupport(ns:Namespace)Parameters
ns:Namespace |
| getNamespace | () | method |
public function getNamespace():NamespaceReturn the namespace supported by this namespace handler.
ReturnsNamespace |
| parse | () | method |
public function parse(node:XML, parser:XMLObjectDefinitionsParser):IObjectDefinitionParses the given node and returns the resulting object definition.
Parametersnode:XML — the xml node to parse
|
|
parser:XMLObjectDefinitionsParser — the root xml parser (XXX this might change to a parser context object)
|
IObjectDefinition |
| registerObjectDefinitionParser | () | method |
protected function registerObjectDefinitionParser(element:String, parser:IObjectDefinitionParser):voidRegisters an object definition parser.
Parameterselement:String — the name of the node that the parser supports
|
|
parser:IObjectDefinitionParser — the object definition parser
|