Constructor
new module:br/AliasRegistryClass()
Methods
-
getAliasesByInterface(requiredInterface)
-
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. -
getAllAliases()
-
Returns an array containing the names of all aliases in use within the application.
-
getClass(aliasName)
-
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.IllegalState
-
-
isAlias(aliasName)
-
Returns whether the given alias is defined.
Parameters:
Name Type Description aliasName
String alias name. -
isAliasAssigned(aliasName)
-
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.