Package net.sf.jasperreports.extensions
Class SingletonExtensionRegistry<Type>
- java.lang.Object
-
- net.sf.jasperreports.extensions.SingletonExtensionRegistry<Type>
-
- Type Parameters:
Type- the extension type
- All Implemented Interfaces:
ExtensionsRegistry
public class SingletonExtensionRegistry<Type> extends java.lang.Object implements ExtensionsRegistry
An extension registry that contains a single extension.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description SingletonExtensionRegistry(java.lang.Class<Type> type, Type extension)Creates a singleton extension registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.List<T>getExtensions(java.lang.Class<T> extensionType)Returns a list of extension objects for a specific extension type.
-
-
-
Method Detail
-
getExtensions
public <T> java.util.List<T> getExtensions(java.lang.Class<T> extensionType)
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
-
-