org.apache.cxf.bus.osgi
Class OSGiBeanLocator

java.lang.Object
  extended by org.apache.cxf.bus.osgi.OSGiBeanLocator
All Implemented Interfaces:
org.apache.cxf.configuration.ConfiguredBeanLocator

public class OSGiBeanLocator
extends Object
implements 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>
 
Constructor Summary
OSGiBeanLocator(org.apache.cxf.configuration.ConfiguredBeanLocator c, org.osgi.framework.BundleContext ctx)
           
 
Method Summary
 List<String> getBeanNamesOfType(Class<?> type)
           
<T> T
getBeanOfType(String name, Class<T> type)
           
<T> Collection<? extends T>
getBeansOfType(Class<T> type)
           
 boolean hasBeanOfName(String name)
           
 boolean hasConfiguredPropertyValue(String beanName, String propertyName, String value)
           
<T> boolean
loadBeansOfType(Class<T> type, org.apache.cxf.configuration.ConfiguredBeanLocator.BeanLoaderListener<T> listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiBeanLocator

public OSGiBeanLocator(org.apache.cxf.configuration.ConfiguredBeanLocator c,
                       org.osgi.framework.BundleContext ctx)
Method Detail

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

getBeanNamesOfType

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

hasBeanOfName

public boolean hasBeanOfName(String name)
Specified by:
hasBeanOfName in interface org.apache.cxf.configuration.ConfiguredBeanLocator


Apache CXF