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 Object
- implements ExtensionsRegistry
An extension registry that contains a single extension.
- Version:
- $Id: SingletonExtensionRegistry.java 4600 2011-09-12 10:32:17Z teodord $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
|
Method Summary |
|
getExtensions(Class<T> extensionType)
Returns a list of extension objects for a specific extension type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonExtensionRegistry
public SingletonExtensionRegistry(Class<Type> type,
Type extension)
- Creates a singleton extension registry.
- Parameters:
type - the registry typeextension - the extension 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 interface ExtensionsRegistry
- Type Parameters:
T - generic extension type- Parameters:
extensionType - the extension type
- Returns:
- a list of extension objects
Copyright © 2012. All Rights Reserved.