public class SpringExtensionsRegistry extends java.lang.Object implements ExtensionsRegistry
extension registry which works by looking
for beans of a specific extension type in a Spring beans factory.| Constructor and Description |
|---|
SpringExtensionsRegistry(org.springframework.beans.factory.ListableBeanFactory beanFactory)
Creates a Spring-based extension registry.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String[] |
findExtensionBeanNames(java.lang.Class<?> extensionType) |
protected java.lang.String[] |
getExtensionBeanNames(java.lang.Class<?> extensionType) |
<T> java.util.List<T> |
getExtensions(java.lang.Class<T> extensionType)
Returns all beans that match the extension class.
|
public SpringExtensionsRegistry(org.springframework.beans.factory.ListableBeanFactory beanFactory)
beanFactory - the Spring bean factorypublic <T> java.util.List<T> getExtensions(java.lang.Class<T> extensionType)
getExtensions in interface ExtensionsRegistryT - generic extension typeextensionType - the extension typeprotected java.lang.String[] getExtensionBeanNames(java.lang.Class<?> extensionType)
protected java.lang.String[] findExtensionBeanNames(java.lang.Class<?> extensionType)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com