Interface ComponentDescriptor<T>

    • Method Detail

      • name

        String name()
        Gets the name of the component.
        Returns:
        the name, or null if the name is not set.
      • classLoader

        ClassLoader classLoader()
        Gets the classloader used to load the component.
        Returns:
        the ClassLoader.
      • addAliases

        void addAliases​(Set<String> aliases)
        Adds new aliases to reference the described component.
        Parameters:
        aliases - the aliases to be added.
      • aliases

        Set<String> aliases()
        Gets the set of aliases for this component.
        Returns:
        the aliases.
      • className

        default String className()
        Gets the name of the describe component.
        Returns:
        the name.
      • version

        Version version()
        Gets the version of the described component.
        Returns:
        the component version if versioned, otherwise null.
      • isVersioned

        default boolean isVersioned()
        Checks whether the described component has a valid versioned.
        Returns:
        true if versioned, otherwise false.
      • type

        Class<T> type()
        Gets the type of the described component.
        Returns:
        the class of type T.
      • isCloseable

        default boolean isCloseable()
        Checks if the described component implement Closeable.
        Returns:
        true if closeable, otherwise false.
      • isSingleton

        boolean isSingleton()
        Checks if the described component is a singleton.
        Returns:
        true if is singleton, otherwise false.