Class BaseDescriptorRegistry

  • All Implemented Interfaces:
    IDescriptorRegistry, java.lang.AutoCloseable

    public abstract class BaseDescriptorRegistry
    extends java.lang.Object
    implements IDescriptorRegistry
    A registry for the ConfigurationItems the XL Deploy system should know about. Every CI registry must extend this class, and it can be added to the collection of known registries, which is kept in this class.

    One special descriptor registry is the LocalDescriptorRegistry, which is usually the default one. Another descriptor registry is the RemoteDescriptorRegistry.

    • Method Detail

      • lookupType

        public Type lookupType​(java.lang.Class<?> ciClass)
        Searches in the registry for a CI type by CI class.
        Specified by:
        lookupType in interface IDescriptorRegistry
        Parameters:
        ciClass - A class instance of a CI.
        Returns:
        The type for the given CI class.
      • lookupType

        public Type lookupType​(java.lang.String typeName)
        Searches in the registry for a CI type by CI prefixed type name.
        Specified by:
        lookupType in interface IDescriptorRegistry
        Parameters:
        typeName - The prefixed type name of a CI.
        Returns:
        The type of the CI.
      • lookupType

        public Type lookupType​(java.lang.String prefix,
                               java.lang.String simpleName)
        Searches in the registry for a CI type by CI prefix and simple name.
        Specified by:
        lookupType in interface IDescriptorRegistry
        Parameters:
        prefix - The prefix of a CI.
        simpleName - The simple name of a CI.
        Returns:
        The type of the CI.