Package net.sf.jasperreports.spring
Class SpringExtensionsRegistry
java.lang.Object
net.sf.jasperreports.spring.SpringExtensionsRegistry
- All Implemented Interfaces:
ExtensionsRegistry
An
extension 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
ConstructorsConstructorDescriptionSpringExtensionsRegistry(org.springframework.beans.factory.ListableBeanFactory beanFactory) Creates a Spring-based extension registry. -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]findExtensionBeanNames(Class<?> extensionType) protected String[]getExtensionBeanNames(Class<?> extensionType) <T> List<T> getExtensions(Class<T> extensionType) Returns all beans that match the extension class.
-
Constructor Details
-
SpringExtensionsRegistry
public SpringExtensionsRegistry(org.springframework.beans.factory.ListableBeanFactory beanFactory) Creates a Spring-based extension registry.- Parameters:
beanFactory- the Spring bean factory
-
-
Method Details
-
getExtensions
Returns all beans that match the extension class.- Specified by:
getExtensionsin interfaceExtensionsRegistry- Type Parameters:
T- generic extension type- Parameters:
extensionType- the extension type- Returns:
- a list of extension objects
-
getExtensionBeanNames
-
findExtensionBeanNames
-