Packageorg.igniterealtime.xiff.data
Classpublic class ExtensionClassRegistry
InheritanceExtensionClassRegistry Inheritance Object

This is a static class that contains class constructors for all extensions that could come from the network.



Public Methods
 MethodDefined By
  
[static] Get a list of namespaces of the currently enabled extensions.
ExtensionClassRegistry
  
lookup(ns:String, elementName:String = null):Class
[static] Find the extension with the given NS and ELEMENT_NAME if availale in the registery.
ExtensionClassRegistry
  
register(extensionClass:Class):Boolean
[static] Registers the given extension with the extension registry for it to be used, in case incoming data matches its ELEMENT_NAME and NS.
ExtensionClassRegistry
  
remove(extensionClass:Class):Boolean
[static] Remove the given extension from the registery.
ExtensionClassRegistry
Method Detail
getNamespaces()method
public static function getNamespaces():Array

Get a list of namespaces of the currently enabled extensions.

Returns
Array
lookup()method 
public static function lookup(ns:String, elementName:String = null):Class

Find the extension with the given NS and ELEMENT_NAME if availale in the registery.

Parameters

ns:String
 
elementName:String (default = null) — Optional ELEMENT_NAME, used if there are several extensions with the same NS

Returns
Class
register()method 
public static function register(extensionClass:Class):Boolean

Registers the given extension with the extension registry for it to be used, in case incoming data matches its ELEMENT_NAME and NS.

Parameters

extensionClass:Class

Returns
Boolean — In case the Extension was already added or it was not proper type, returns false.
remove()method 
public static function remove(extensionClass:Class):Boolean

Remove the given extension from the registery.

Parameters

extensionClass:Class

Returns
Boolean