Apache CXF API

org.apache.cxf.configuration
Interface ConfiguredBeanLocator


public interface ConfiguredBeanLocator


Nested Class Summary
static interface ConfiguredBeanLocator.BeanLoaderListener<T>
           
 
Method Summary
 java.util.List<java.lang.String> getBeanNamesOfType(java.lang.Class<?> type)
          Gets the names of all the configured beans of the specific type.
<T> T
getBeanOfType(java.lang.String name, java.lang.Class<T> type)
          Returns the bean of the given type and name.
<T> java.util.Collection<? extends T>
getBeansOfType(java.lang.Class<T> type)
          Gets all the configured beans of the specific types.
 boolean hasConfiguredPropertyValue(java.lang.String beanName, java.lang.String propertyName, java.lang.String value)
          For supporting "legacy" config, checks the configured bean to see if it has a property configured with the given name/value.
<T> boolean
loadBeansOfType(java.lang.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.
 

Method Detail

getBeanNamesOfType

java.util.List<java.lang.String> getBeanNamesOfType(java.lang.Class<?> type)
Gets the names of all the configured beans of the specific type. Does not cause them to be loaded.

Parameters:
type -
Returns:

getBeansOfType

<T> java.util.Collection<? extends T> getBeansOfType(java.lang.Class<T> type)
Gets all the configured beans of the specific types. Causes them all to be loaded.

Type Parameters:
T -
Parameters:
type -
Returns:

getBeanOfType

<T> T getBeanOfType(java.lang.String name,
                    java.lang.Class<T> type)
Returns the bean of the given type and name. Causes it to be loaded.

Type Parameters:
T -
Parameters:
name -
type -
Returns:

loadBeansOfType

<T> boolean loadBeansOfType(java.lang.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.

Type Parameters:
T -
Parameters:
type -
listener -
Returns:

hasConfiguredPropertyValue

boolean hasConfiguredPropertyValue(java.lang.String beanName,
                                   java.lang.String propertyName,
                                   java.lang.String value)
For 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.

Type Parameters:
T -
Parameters:
type -
property -
value -
Returns:

Apache CXF API

Apache CXF