Package net.sf.jasperreports.extensions
Class ListExtensionsRegistry
- java.lang.Object
-
- net.sf.jasperreports.extensions.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 Summary
Constructors Constructor Description ListExtensionsRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ListExtensionsRegistry
add(Class<T> type, T extension)
Adds an extension.<T> List<T>
getExtensions(Class<T> extensionType)
Returns a list of extension objects for a specific extension type.
-
-
-
Method Detail
-
add
public <T> ListExtensionsRegistry add(Class<T> type, T extension)
Adds an extension.- Parameters:
type
- the extension typeextension
- 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 interfaceExtensionsRegistry
- Type Parameters:
T
- generic extension type- Parameters:
extensionType
- the extension type- Returns:
- a list of extension objects
-
-