net.sf.jasperreports.extensions
Class ListExtensionRegistry<Type>

java.lang.Object
  extended by net.sf.jasperreports.extensions.ListExtensionRegistry<Type>
Type Parameters:
Type - the extension type
All Implemented Interfaces:
ExtensionsRegistry

public class ListExtensionRegistry<Type>
extends java.lang.Object
implements ExtensionsRegistry

An extension registry that contains a list of extensions.

Version:
$Id: ListExtensionRegistry.java 5180 2012-03-29 13:23:12Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Constructor Summary
ListExtensionRegistry(java.lang.Class<Type> type, java.util.List<Type> extension)
          Creates a singleton extension registry.
 
Method Summary
<T> java.util.List<T>
getExtensions(java.lang.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
 

Constructor Detail

ListExtensionRegistry

public ListExtensionRegistry(java.lang.Class<Type> type,
                             java.util.List<Type> extension)
Creates a singleton extension registry.

Parameters:
type - the registry type
extension - the extension object
Method Detail

getExtensions

public <T> java.util.List<T> getExtensions(java.lang.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


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com