Package net.sf.jasperreports.extensions
Class ListExtensionsRegistry
java.lang.Object
net.sf.jasperreports.extensions.ListExtensionsRegistry
- All Implemented Interfaces:
ExtensionsRegistry
An extension registry that contains several lists of extensions.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an extension.<T> List<T> getExtensions(Class<T> extensionType) Returns a list of extension objects for a specific extension type.
-
Constructor Details
-
ListExtensionsRegistry
public ListExtensionsRegistry()
-
-
Method Details
-
add
Adds an extension.- Parameters:
type- the extension typeextension- the extension object- Returns:
- this object
-
getExtensions
Description copied from interface:ExtensionsRegistryReturns a list of extension objects for a specific extension type.- Specified by:
getExtensionsin interfaceExtensionsRegistry- Type Parameters:
T- generic extension type- Parameters:
extensionType- the extension type- Returns:
- a list of extension objects
-