Interface AliasRegistry

    • Method Detail

      • registerAlias

        void registerAlias​(String name,
                           String alias)
        Given a name, register an alias for it.
        Parameters:
        name - the canonical name
        alias - the alias to be registered
        Throws:
        IllegalStateException - if the alias is already in use and may not be overridden
      • isAlias

        boolean isAlias​(String name)
        Determine whether the given name is defined as an alias (as opposed to the name of an actually registered component).
        Parameters:
        name - the name to check
        Returns:
        whether the given name is an alias
      • getAliases

        String[] getAliases​(String name)
        Return the aliases for the given name, if defined.
        Parameters:
        name - the name to check for aliases
        Returns:
        the aliases, or an empty array if none