|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.bus.spring.SpringBeanLocator
public class SpringBeanLocator
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.cxf.configuration.ConfiguredBeanLocator |
|---|
ConfiguredBeanLocator.BeanLoaderListener<T> |
| Constructor Summary | |
|---|---|
SpringBeanLocator(org.springframework.context.ApplicationContext ctx)
|
|
SpringBeanLocator(org.springframework.context.ApplicationContext ctx,
Bus bus)
|
|
| Method Summary | ||
|---|---|---|
List<String> |
getBeanNamesOfType(Class<?> type)
Gets the names of all the configured beans of the specific type. |
|
|
getBeanOfType(String name,
Class<T> type)
Gets the bean of the given name and type |
|
|
getBeansOfType(Class<T> type)
Gets all the configured beans of the specific types. |
|
|
getOSGiServices(Class<T> type)
|
|
boolean |
hasBeanOfName(String name)
|
|
boolean |
hasConfiguredPropertyValue(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. |
|
|
loadBeansOfType(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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringBeanLocator(org.springframework.context.ApplicationContext ctx)
public SpringBeanLocator(org.springframework.context.ApplicationContext ctx,
Bus bus)
| Method Detail |
|---|
public <T> T getBeanOfType(String name,
Class<T> type)
ConfiguredBeanLocator
getBeanOfType in interface ConfiguredBeanLocatorpublic List<String> getBeanNamesOfType(Class<?> type)
getBeanNamesOfType in interface ConfiguredBeanLocatorpublic <T> Collection<? extends T> getBeansOfType(Class<T> type)
getBeansOfType in interface ConfiguredBeanLocator
public <T> boolean loadBeansOfType(Class<T> type,
ConfiguredBeanLocator.BeanLoaderListener<T> listener)
ConfiguredBeanLocator
loadBeansOfType in interface ConfiguredBeanLocator
public boolean hasConfiguredPropertyValue(String beanName,
String propertyName,
String searchValue)
ConfiguredBeanLocator
hasConfiguredPropertyValue in interface ConfiguredBeanLocatorpublic <T> List<T> getOSGiServices(Class<T> type)
public boolean hasBeanOfName(String name)
hasBeanOfName in interface ConfiguredBeanLocator
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||