Package org.apache.cxf.bus.extension
Class ExtensionManagerImpl
java.lang.Object
org.apache.cxf.bus.extension.ExtensionManagerImpl
- All Implemented Interfaces:
ExtensionManager,ConfiguredBeanLocator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cxf.configuration.ConfiguredBeanLocator
ConfiguredBeanLocator.BeanLoaderListener<T> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExtensionManagerImpl(ClassLoader cl, Map<Class<?>, Object> initialExtensions, ResourceManager rm, Bus b) ExtensionManagerImpl(String[] resources, ClassLoader cl, Map<Class<?>, Object> initialExtensions, ResourceManager rm, Bus b) ExtensionManagerImpl(String resource, ClassLoader cl, Map<Class<?>, Object> initialExtensions, ResourceManager rm, Bus b) -
Method Summary
Modifier and TypeMethodDescriptionvoid<T> voidactivateAllByType(Class<T> type) voidvoidgetBeanNamesOfType(Class<?> type) Gets the names of all the configured beans of the specific type.<T> TgetBeanOfType(String name, Class<T> type) Gets the bean of the given name and type<T> Collection<? extends T>getBeansOfType(Class<T> type) Gets all the configured beans of the specific types.<T> TgetExtension(String name, Class<T> type) booleanhasBeanOfName(String name) booleanhasConfiguredPropertyValue(String beanName, String propertyName, String value) For supporting "legacy" config, checks the configured bean to see if it has a property configured with the given name/value.void<T> booleanloadBeansOfType(Class<T> type, ConfiguredBeanLocator.BeanLoaderListener<T> listener) Iterates through the beans of the given type, calling the listener to determine if it should be loaded or not.voidremoveBeansOfNames(List<String> names)
-
Field Details
-
EXTENSIONMANAGER_PROPERTY_NAME
- See Also:
-
ACTIVATION_NAMESPACES_PROPERTY_NAME
- See Also:
-
ACTIVATION_NAMESPACES_SETTER_METHOD_NAME
- See Also:
-
BUS_EXTENSION_RESOURCE
- See Also:
-
-
Constructor Details
-
ExtensionManagerImpl
public ExtensionManagerImpl(ClassLoader cl, Map<Class<?>, Object> initialExtensions, ResourceManager rm, Bus b) -
ExtensionManagerImpl
public ExtensionManagerImpl(String resource, ClassLoader cl, Map<Class<?>, Object> initialExtensions, ResourceManager rm, Bus b) -
ExtensionManagerImpl
public ExtensionManagerImpl(String[] resources, ClassLoader cl, Map<Class<?>, Object> initialExtensions, ResourceManager rm, Bus b)
-
-
Method Details
-
add
-
initialize
public void initialize() -
removeBeansOfNames
-
activateAll
public void activateAll()- Specified by:
activateAllin interfaceExtensionManager
-
activateAllByType
- Specified by:
activateAllByTypein interfaceExtensionManager
-
hasBeanOfName
- Specified by:
hasBeanOfNamein interfaceConfiguredBeanLocator
-
getExtension
- Specified by:
getExtensionin interfaceExtensionManager
-
getBeanNamesOfType
Description copied from interface:ConfiguredBeanLocatorGets the names of all the configured beans of the specific type. Does not cause them to be loaded.- Specified by:
getBeanNamesOfTypein interfaceConfiguredBeanLocator- Returns:
- List of all the bean names for the given type
-
getBeanOfType
Description copied from interface:ConfiguredBeanLocatorGets the bean of the given name and type- Specified by:
getBeanOfTypein interfaceConfiguredBeanLocator- Returns:
- the bean
-
getBeansOfType
Description copied from interface:ConfiguredBeanLocatorGets all the configured beans of the specific types. Causes them all to be loaded.- Specified by:
getBeansOfTypein interfaceConfiguredBeanLocator- Returns:
- The collection of all the configured beans of the given type
-
loadBeansOfType
public <T> boolean loadBeansOfType(Class<T> type, ConfiguredBeanLocator.BeanLoaderListener<T> listener) Description copied from interface:ConfiguredBeanLocatorIterates through the beans of the given type, calling the listener to determine if it should be loaded or not.- Specified by:
loadBeansOfTypein interfaceConfiguredBeanLocator- Returns:
- true if beans of the type were loaded
-
hasConfiguredPropertyValue
Description copied from interface:ConfiguredBeanLocatorFor supporting "legacy" config, checks the configured bean to see if it has a property configured with the given name/value. Mostly used for supporting things configured with "activationNamespaces" set.- Specified by:
hasConfiguredPropertyValuein interfaceConfiguredBeanLocator- Returns:
- true if the bean has the given property/value
-
destroyBeans
public void destroyBeans()
-