public class BlueprintBeanLocator extends java.lang.Object implements ConfiguredBeanLocator
ConfiguredBeanLocator.BeanLoaderListener<T>| Constructor and Description |
|---|
BlueprintBeanLocator(ConfiguredBeanLocator orig,
BlueprintContainer cont,
org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
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)
Gets the bean of the given name and type
|
<T> java.util.Collection<? extends T> |
getBeansOfType(java.lang.Class<T> type)
Gets all the configured beans of the specific types.
|
boolean |
hasBeanOfName(java.lang.String name) |
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.
|
public BlueprintBeanLocator(ConfiguredBeanLocator orig, BlueprintContainer cont, org.osgi.framework.BundleContext context)
public <T> T getBeanOfType(java.lang.String name,
java.lang.Class<T> type)
ConfiguredBeanLocatorgetBeanOfType in interface ConfiguredBeanLocatorpublic java.util.List<java.lang.String> getBeanNamesOfType(java.lang.Class<?> type)
getBeanNamesOfType in interface ConfiguredBeanLocatorpublic <T> java.util.Collection<? extends T> getBeansOfType(java.lang.Class<T> type)
getBeansOfType in interface ConfiguredBeanLocatorpublic <T> boolean loadBeansOfType(java.lang.Class<T> type,
ConfiguredBeanLocator.BeanLoaderListener<T> listener)
loadBeansOfType in interface ConfiguredBeanLocatorpublic boolean hasConfiguredPropertyValue(java.lang.String beanName,
java.lang.String propertyName,
java.lang.String value)
ConfiguredBeanLocatorhasConfiguredPropertyValue in interface ConfiguredBeanLocatorpublic boolean hasBeanOfName(java.lang.String name)
hasBeanOfName in interface ConfiguredBeanLocator