Package org.apache.cxf.bus.extension
Class ExtensionManagerImpl
- java.lang.Object
- 
- org.apache.cxf.bus.extension.ExtensionManagerImpl
 
- 
- All Implemented Interfaces:
- ExtensionManager,- ConfiguredBeanLocator
 
 public class ExtensionManagerImpl extends Object implements ExtensionManager, ConfiguredBeanLocator 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.cxf.configuration.ConfiguredBeanLocatorConfiguredBeanLocator.BeanLoaderListener<T>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringACTIVATION_NAMESPACES_PROPERTY_NAMEstatic StringACTIVATION_NAMESPACES_SETTER_METHOD_NAMEstatic StringBUS_EXTENSION_RESOURCEstatic StringEXTENSIONMANAGER_PROPERTY_NAME
 - 
Constructor SummaryConstructors Constructor Description ExtensionManagerImpl(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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateAll()<T> voidactivateAllByType(Class<T> type)voidadd(Extension ex)voiddestroyBeans()List<String>getBeanNamesOfType(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.voidinitialize()<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 Detail- 
EXTENSIONMANAGER_PROPERTY_NAMEpublic static final String EXTENSIONMANAGER_PROPERTY_NAME - See Also:
- Constant Field Values
 
 - 
ACTIVATION_NAMESPACES_PROPERTY_NAMEpublic static final String ACTIVATION_NAMESPACES_PROPERTY_NAME - See Also:
- Constant Field Values
 
 - 
ACTIVATION_NAMESPACES_SETTER_METHOD_NAMEpublic static final String ACTIVATION_NAMESPACES_SETTER_METHOD_NAME - See Also:
- Constant Field Values
 
 - 
BUS_EXTENSION_RESOURCEpublic static final String BUS_EXTENSION_RESOURCE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ExtensionManagerImplpublic ExtensionManagerImpl(ClassLoader cl, Map<Class<?>,Object> initialExtensions, ResourceManager rm, Bus b) 
 - 
ExtensionManagerImplpublic ExtensionManagerImpl(String resource, ClassLoader cl, Map<Class<?>,Object> initialExtensions, ResourceManager rm, Bus b) 
 - 
ExtensionManagerImplpublic ExtensionManagerImpl(String[] resources, ClassLoader cl, Map<Class<?>,Object> initialExtensions, ResourceManager rm, Bus b) 
 
- 
 - 
Method Detail- 
addpublic void add(Extension ex) 
 - 
initializepublic void initialize() 
 - 
activateAllpublic void activateAll() - Specified by:
- activateAllin interface- ExtensionManager
 
 - 
activateAllByTypepublic <T> void activateAllByType(Class<T> type) - Specified by:
- activateAllByTypein interface- ExtensionManager
 
 - 
hasBeanOfNamepublic boolean hasBeanOfName(String name) - Specified by:
- hasBeanOfNamein interface- ConfiguredBeanLocator
 
 - 
getExtensionpublic <T> T getExtension(String name, Class<T> type) - Specified by:
- getExtensionin interface- ExtensionManager
 
 - 
getBeanNamesOfTypepublic List<String> getBeanNamesOfType(Class<?> type) 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 interface- ConfiguredBeanLocator
- Returns:
- List of all the bean names for the given type
 
 - 
getBeanOfTypepublic <T> T getBeanOfType(String name, Class<T> type) Description copied from interface:ConfiguredBeanLocatorGets the bean of the given name and type- Specified by:
- getBeanOfTypein interface- ConfiguredBeanLocator
- Returns:
- the bean
 
 - 
getBeansOfTypepublic <T> Collection<? extends T> getBeansOfType(Class<T> type) Description copied from interface:ConfiguredBeanLocatorGets all the configured beans of the specific types. Causes them all to be loaded.- Specified by:
- getBeansOfTypein interface- ConfiguredBeanLocator
- Returns:
- The collection of all the configured beans of the given type
 
 - 
loadBeansOfTypepublic <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 interface- ConfiguredBeanLocator
- Returns:
- true if beans of the type were loaded
 
 - 
hasConfiguredPropertyValuepublic boolean hasConfiguredPropertyValue(String beanName, String propertyName, String value) 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 interface- ConfiguredBeanLocator
- Returns:
- true if the bean has the given property/value
 
 - 
destroyBeanspublic void destroyBeans() 
 
- 
 
-