Constructor
new module:br /Alias Registry Class()
Methods
get Aliases ByInterface(required Interface)
Returns a filtered subset of the aliases provided by
module:br/AliasRegistry/getAllAliases
.
An alias is considered to be associated with an interface if the XML configuration for that alias specifically mentions the given interface, or if the class the alias points to happens to implement the given interface.
Parameters:
Name | Type | Description |
---|---|---|
requiredInterface |
function | the interface being used to filter the aliases by. |
get All Aliases()
Returns an array containing the names of all aliases in use within the application.
get Class(alias Name)
Returns a class corresponding to the requested alias name.
Parameters:
Name | Type | Description |
---|---|---|
aliasName |
String | alias name. |
Throws:
-
if the given alias doesn't exist.
- Type
-
Errors
.Illegal State
is Alias(alias Name)
Returns whether the given alias is defined.
Parameters:
Name | Type | Description |
---|---|---|
aliasName |
String | alias name. |
is Alias Assigned(alias Name)
Returns whether the given alias has been assigned a value — i.e. whether an alias has a class value.
Parameters:
Name | Type | Description |
---|---|---|
aliasName |
String | alias name. |