Package org.apache.cxf.bus.spring
Class SpringBeanLocator
java.lang.Object
org.apache.cxf.bus.spring.SpringBeanLocator
- All Implemented Interfaces:
- ConfiguredBeanLocator
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.cxf.configuration.ConfiguredBeanLocatorConfiguredBeanLocator.BeanLoaderListener<T>
- 
Constructor SummaryConstructorsConstructorDescriptionSpringBeanLocator(org.springframework.context.ApplicationContext ctx) SpringBeanLocator(org.springframework.context.ApplicationContext ctx, Bus bus) 
- 
Method SummaryModifier and TypeMethodDescriptiongetBeanNamesOfType(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> List<T>getOSGiServices(Class<T> type) booleanhasBeanOfName(String name) booleanhasConfiguredPropertyValue(String beanName, String propertyName, String searchValue) For supporting "legacy" config, checks the configured bean to see if it has a property configured with the given name/value.<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.
- 
Constructor Details- 
SpringBeanLocatorpublic SpringBeanLocator(org.springframework.context.ApplicationContext ctx) 
- 
SpringBeanLocator
 
- 
- 
Method Details- 
getBeanOfTypeDescription copied from interface:ConfiguredBeanLocatorGets the bean of the given name and type- Specified by:
- getBeanOfTypein interface- ConfiguredBeanLocator
- Returns:
- the bean
 
- 
getBeanNamesOfTypeGets 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
 
- 
getBeansOfTypeGets 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
 
- 
hasConfiguredPropertyValueDescription 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
 
- 
getOSGiServices
- 
hasBeanOfName- Specified by:
- hasBeanOfNamein interface- ConfiguredBeanLocator
 
 
-