Class ListExtensionRegistry<Type>

java.lang.Object
net.sf.jasperreports.extensions.ListExtensionRegistry<Type>
Type Parameters:
Type - the extension type
All Implemented Interfaces:
ExtensionsRegistry

public class ListExtensionRegistry<Type> extends Object implements ExtensionsRegistry
An extension registry that contains a list of extensions.
Author:
Teodor Danciu (teodord@users.sourceforge.net)
  • Constructor Details

    • ListExtensionRegistry

      public ListExtensionRegistry(Class<Type> type, List<Type> extension)
      Creates a singleton extension registry.
      Parameters:
      type - the registry type
      extension - the extension object
  • Method Details

    • 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