Class ListExtensionsRegistry

  • All Implemented Interfaces:
    ExtensionsRegistry

    public class ListExtensionsRegistry
    extends Object
    implements ExtensionsRegistry
    An extension registry that contains several lists of extensions.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Constructor Detail

      • ListExtensionsRegistry

        public ListExtensionsRegistry()
    • Method Detail

      • add

        public <T> ListExtensionsRegistry add​(Class<T> type,
                                              T extension)
        Adds an extension.
        Parameters:
        type - the extension type
        extension - the extension object
        Returns:
        this object
      • getExtensions

        public <T> List<T> getExtensions​(Class<T> extensionType)
        Description copied from interface: ExtensionsRegistry
        Returns a list of extension objects for a specific extension type.
        Specified by:
        getExtensions in interface ExtensionsRegistry
        Type Parameters:
        T - generic extension type
        Parameters:
        extensionType - the extension type
        Returns:
        a list of extension objects