Package net.sf.jasperreports.spring
Class SpringExtensionsRegistry
- java.lang.Object
-
- net.sf.jasperreports.spring.SpringExtensionsRegistry
-
- All Implemented Interfaces:
ExtensionsRegistry
public class SpringExtensionsRegistry extends Object implements ExtensionsRegistry
Anextension registry
which works by looking for beans of a specific extension type in a Spring beans factory.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description SpringExtensionsRegistry(org.springframework.beans.factory.ListableBeanFactory beanFactory)
Creates a Spring-based extension registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]
findExtensionBeanNames(Class<?> extensionType)
protected String[]
getExtensionBeanNames(Class<?> extensionType)
<T> List<T>
getExtensions(Class<T> extensionType)
Returns all beans that match the extension class.
-
-
-
Method Detail
-
getExtensions
public <T> List<T> getExtensions(Class<T> extensionType)
Returns all beans that match the extension class.- Specified by:
getExtensions
in interfaceExtensionsRegistry
- Type Parameters:
T
- generic extension type- Parameters:
extensionType
- the extension type- Returns:
- a list of extension objects
-
-