net.sf.jasperreports.extensions
Class SpringExtensionsRegistry
java.lang.Object
net.sf.jasperreports.extensions.SpringExtensionsRegistry
- All Implemented Interfaces:
- ExtensionsRegistry
public class SpringExtensionsRegistry
- extends Object
- implements ExtensionsRegistry
An extension registry which works by looking
for beans of a specific extension type in a Spring beans factory.
- Version:
- $Id: SpringExtensionsRegistry.java 4595 2011-09-08 15:55:10Z teodord $
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
|
Constructor Summary |
SpringExtensionsRegistry(org.springframework.beans.factory.ListableBeanFactory beanFactory)
Creates a Spring-based extension registry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringExtensionsRegistry
public SpringExtensionsRegistry(org.springframework.beans.factory.ListableBeanFactory beanFactory)
- Creates a Spring-based extension registry.
- Parameters:
beanFactory - the Spring bean factory
getExtensions
public <T> List<T> getExtensions(Class<T> extensionType)
- Returns all beans that match the extension class.
- Specified by:
getExtensions in interface ExtensionsRegistry
- Type Parameters:
T - generic extension type- Parameters:
extensionType - the extension type
- Returns:
- a list of extension objects
getExtensionBeanNames
protected String[] getExtensionBeanNames(Class<?> extensionType)
findExtensionBeanNames
protected String[] findExtensionBeanNames(Class<?> extensionType)
Copyright © 2012. All Rights Reserved.