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
An extension registry that contains a single extension.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Constructor Summary
ConstructorsConstructorDescriptionSingletonExtensionRegistry(Class<Type> type, Type extension) Creates a singleton extension registry. -
Method Summary
Modifier and TypeMethodDescription<T> List<T> getExtensions(Class<T> extensionType) Returns a list of extension objects for a specific extension type.
-
Constructor Details
-
SingletonExtensionRegistry
Creates a singleton extension registry.- Parameters:
type- the registry typeextension- the extension object
-
-
Method Details
-
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
-