public class SpringExtensionsRegistry extends 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 String[] |
findExtensionBeanNames(Class<?> extensionType) |
protected String[] |
getExtensionBeanNames(Class<?> extensionType) |
<T> List<T> |
getExtensions(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> List<T> getExtensions(Class<T> extensionType)
getExtensions
in interface ExtensionsRegistry
T
- generic extension typeextensionType
- the extension typeCopyright © 2019 TIBCO Software Inc.. All rights reserved.