org.apache.cxf.bus.extension
Class ExtensionManagerImpl

java.lang.Object
  extended by org.apache.cxf.bus.extension.ExtensionManagerImpl
All Implemented Interfaces:
ExtensionManager, org.apache.cxf.configuration.ConfiguredBeanLocator

public class ExtensionManagerImpl
extends Object
implements ExtensionManager, org.apache.cxf.configuration.ConfiguredBeanLocator


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.cxf.configuration.ConfiguredBeanLocator
org.apache.cxf.configuration.ConfiguredBeanLocator.BeanLoaderListener<T>
 
Field Summary
static String ACTIVATION_NAMESPACES_PROPERTY_NAME
           
static String ACTIVATION_NAMESPACES_SETTER_METHOD_NAME
           
static String BUS_EXTENSION_RESOURCE
           
static String BUS_EXTENSION_RESOURCE_OLD_XML
           
static String BUS_EXTENSION_RESOURCE_XML
           
static String EXTENSIONMANAGER_PROPERTY_NAME
           
static Logger LOG
           
 
Constructor Summary
ExtensionManagerImpl(ClassLoader cl, Map<Class,Object> initialExtensions, org.apache.cxf.resource.ResourceManager rm, org.apache.cxf.Bus b)
           
ExtensionManagerImpl(String[] resources, ClassLoader cl, Map<Class,Object> initialExtensions, org.apache.cxf.resource.ResourceManager rm, org.apache.cxf.Bus b)
           
ExtensionManagerImpl(String resource, ClassLoader cl, Map<Class,Object> initialExtensions, org.apache.cxf.resource.ResourceManager rm, org.apache.cxf.Bus b)
           
 
Method Summary
 void activateAll()
           
<T> void
activateAllByType(Class<T> type)
           
 void add(Extension ex)
           
 void destroyBeans()
           
 List<String> getBeanNamesOfType(Class<?> type)
           
<T> T
getBeanOfType(String name, Class<T> type)
           
<T> Collection<? extends T>
getBeansOfType(Class<T> type)
           
<T> T
getExtension(String name, Class<T> type)
           
 boolean hasConfiguredPropertyValue(String beanName, String propertyName, String value)
           
 void initialize()
           
 void load(String[] resources)
           
<T> boolean
loadBeansOfType(Class<T> type, org.apache.cxf.configuration.ConfiguredBeanLocator.BeanLoaderListener<T> listener)
           
 void removeBeansOfNames(List<String> names)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final Logger LOG

EXTENSIONMANAGER_PROPERTY_NAME

public static final String EXTENSIONMANAGER_PROPERTY_NAME
See Also:
Constant Field Values

ACTIVATION_NAMESPACES_PROPERTY_NAME

public static final String ACTIVATION_NAMESPACES_PROPERTY_NAME
See Also:
Constant Field Values

ACTIVATION_NAMESPACES_SETTER_METHOD_NAME

public static final String ACTIVATION_NAMESPACES_SETTER_METHOD_NAME
See Also:
Constant Field Values

BUS_EXTENSION_RESOURCE_XML

public static final String BUS_EXTENSION_RESOURCE_XML
See Also:
Constant Field Values

BUS_EXTENSION_RESOURCE_OLD_XML

public static final String BUS_EXTENSION_RESOURCE_OLD_XML
See Also:
Constant Field Values

BUS_EXTENSION_RESOURCE

public static final String BUS_EXTENSION_RESOURCE
See Also:
Constant Field Values
Constructor Detail

ExtensionManagerImpl

public ExtensionManagerImpl(ClassLoader cl,
                            Map<Class,Object> initialExtensions,
                            org.apache.cxf.resource.ResourceManager rm,
                            org.apache.cxf.Bus b)

ExtensionManagerImpl

public ExtensionManagerImpl(String resource,
                            ClassLoader cl,
                            Map<Class,Object> initialExtensions,
                            org.apache.cxf.resource.ResourceManager rm,
                            org.apache.cxf.Bus b)

ExtensionManagerImpl

public ExtensionManagerImpl(String[] resources,
                            ClassLoader cl,
                            Map<Class,Object> initialExtensions,
                            org.apache.cxf.resource.ResourceManager rm,
                            org.apache.cxf.Bus b)
Method Detail

load

public final void load(String[] resources)

add

public void add(Extension ex)

initialize

public void initialize()

removeBeansOfNames

public void removeBeansOfNames(List<String> names)

activateAll

public void activateAll()
Specified by:
activateAll in interface ExtensionManager

activateAllByType

public <T> void activateAllByType(Class<T> type)
Specified by:
activateAllByType in interface ExtensionManager

getExtension

public <T> T getExtension(String name,
                          Class<T> type)
Specified by:
getExtension in interface ExtensionManager

getBeanNamesOfType

public List<String> getBeanNamesOfType(Class<?> type)
Specified by:
getBeanNamesOfType in interface org.apache.cxf.configuration.ConfiguredBeanLocator

getBeanOfType

public <T> T getBeanOfType(String name,
                           Class<T> type)
Specified by:
getBeanOfType in interface org.apache.cxf.configuration.ConfiguredBeanLocator

getBeansOfType

public <T> Collection<? extends T> getBeansOfType(Class<T> type)
Specified by:
getBeansOfType in interface org.apache.cxf.configuration.ConfiguredBeanLocator

loadBeansOfType

public <T> boolean loadBeansOfType(Class<T> type,
                                   org.apache.cxf.configuration.ConfiguredBeanLocator.BeanLoaderListener<T> listener)
Specified by:
loadBeansOfType in interface org.apache.cxf.configuration.ConfiguredBeanLocator

hasConfiguredPropertyValue

public boolean hasConfiguredPropertyValue(String beanName,
                                          String propertyName,
                                          String value)
Specified by:
hasConfiguredPropertyValue in interface org.apache.cxf.configuration.ConfiguredBeanLocator

destroyBeans

public void destroyBeans()


Apache CXF