public class BlueprintBeanFactory extends Object implements org.springframework.beans.factory.config.ConfigurableBeanFactory, org.osgi.framework.ServiceListener
BeanFactory implementation which adapts to BlueprintContainer.
An newly created instance will wait until the BlueprintContainer associated with the
bundle of BundleContext specified has been started and registered as service before
it is in operational state.| Constructor and Description |
|---|
BlueprintBeanFactory(org.osgi.framework.BundleContext bundleContext)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBeanPostProcessor(org.springframework.beans.factory.config.BeanPostProcessor beanPostProcessor) |
void |
addEmbeddedValueResolver(org.springframework.util.StringValueResolver valueResolver) |
void |
addPropertyEditorRegistrar(org.springframework.beans.PropertyEditorRegistrar registrar) |
boolean |
containsBean(String s) |
boolean |
containsLocalBean(String name) |
boolean |
containsSingleton(String beanName) |
void |
copyConfigurationFrom(org.springframework.beans.factory.config.ConfigurableBeanFactory otherFactory) |
void |
copyRegisteredEditorsTo(org.springframework.beans.PropertyEditorRegistry registry) |
void |
destroyBean(String beanName,
Object beanInstance) |
void |
destroyScopedBean(String beanName) |
void |
destroySingletons() |
AccessControlContext |
getAccessControlContext() |
String[] |
getAliases(String s) |
<T> T |
getBean(Class<T> aClass) |
<T> T |
getBean(Class<T> aClass,
Object... objects) |
Object |
getBean(String s) |
<T> T |
getBean(String s,
Class<T> aClass) |
Object |
getBean(String s,
Object... objects) |
ClassLoader |
getBeanClassLoader() |
org.springframework.beans.factory.config.BeanExpressionResolver |
getBeanExpressionResolver() |
int |
getBeanPostProcessorCount() |
org.springframework.core.convert.ConversionService |
getConversionService() |
String[] |
getDependenciesForBean(String beanName) |
String[] |
getDependentBeans(String beanName) |
String |
getFilter() |
org.springframework.beans.factory.config.BeanDefinition |
getMergedBeanDefinition(String beanName) |
org.springframework.beans.factory.BeanFactory |
getParentBeanFactory() |
org.springframework.beans.factory.config.Scope |
getRegisteredScope(String scopeName) |
String[] |
getRegisteredScopeNames() |
Object |
getSingleton(String beanName) |
int |
getSingletonCount() |
Object |
getSingletonMutex() |
String[] |
getSingletonNames() |
ClassLoader |
getTempClassLoader() |
Class<?> |
getType(String s) |
org.springframework.beans.TypeConverter |
getTypeConverter() |
boolean |
hasEmbeddedValueResolver() |
boolean |
isCacheBeanMetadata() |
boolean |
isCurrentlyInCreation(String beanName) |
boolean |
isFactoryBean(String name) |
boolean |
isPrototype(String s) |
boolean |
isSingleton(String s) |
boolean |
isTypeMatch(String s,
Class<?> aClass) |
boolean |
isTypeMatch(String s,
org.springframework.core.ResolvableType resolvableType) |
void |
registerAlias(String beanName,
String alias) |
void |
registerCustomEditor(Class<?> requiredType,
Class<? extends PropertyEditor> propertyEditorClass) |
void |
registerDependentBean(String beanName,
String dependentBeanName) |
void |
registerScope(String scopeName,
org.springframework.beans.factory.config.Scope scope) |
void |
registerSingleton(String beanName,
Object singletonObject) |
void |
resolveAliases(org.springframework.util.StringValueResolver valueResolver) |
String |
resolveEmbeddedValue(String value) |
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent) |
void |
setBeanClassLoader(ClassLoader beanClassLoader) |
void |
setBeanExpressionResolver(org.springframework.beans.factory.config.BeanExpressionResolver resolver) |
void |
setCacheBeanMetadata(boolean cacheBeanMetadata) |
void |
setConversionService(org.springframework.core.convert.ConversionService conversionService) |
void |
setCurrentlyInCreation(String beanName,
boolean inCreation) |
void |
setParentBeanFactory(org.springframework.beans.factory.BeanFactory parentBeanFactory) |
void |
setTempClassLoader(ClassLoader tempClassLoader) |
void |
setTypeConverter(org.springframework.beans.TypeConverter typeConverter) |
public BlueprintBeanFactory(org.osgi.framework.BundleContext bundleContext)
BlueprintContainer associated with the bundle of Bundle-Context
specified has been started and registered as service before it is in
operational state.bundleContext - public String getFilter()
public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged in interface org.osgi.framework.ServiceListenerpublic Object getBean(String s) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic <T> T getBean(String s, Class<T> aClass) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic <T> T getBean(Class<T> aClass) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic Object getBean(String s, Object... objects) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic <T> T getBean(Class<T> aClass, Object... objects) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic boolean containsBean(String s)
containsBean in interface org.springframework.beans.factory.BeanFactorypublic boolean isSingleton(String s) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isSingleton in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean isPrototype(String s) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isPrototype in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean isTypeMatch(String s, org.springframework.core.ResolvableType resolvableType) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isTypeMatch in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean isTypeMatch(String s, Class<?> aClass) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isTypeMatch in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic Class<?> getType(String s) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
getType in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic String[] getAliases(String s)
getAliases in interface org.springframework.beans.factory.BeanFactorypublic void setParentBeanFactory(org.springframework.beans.factory.BeanFactory parentBeanFactory)
throws IllegalStateException
setParentBeanFactory in interface org.springframework.beans.factory.config.ConfigurableBeanFactoryIllegalStateExceptionpublic void setBeanClassLoader(ClassLoader beanClassLoader)
setBeanClassLoader in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic ClassLoader getBeanClassLoader()
getBeanClassLoader in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void setTempClassLoader(ClassLoader tempClassLoader)
setTempClassLoader in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic ClassLoader getTempClassLoader()
getTempClassLoader in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void setCacheBeanMetadata(boolean cacheBeanMetadata)
setCacheBeanMetadata in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic boolean isCacheBeanMetadata()
isCacheBeanMetadata in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void setBeanExpressionResolver(org.springframework.beans.factory.config.BeanExpressionResolver resolver)
setBeanExpressionResolver in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic org.springframework.beans.factory.config.BeanExpressionResolver getBeanExpressionResolver()
getBeanExpressionResolver in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void setConversionService(org.springframework.core.convert.ConversionService conversionService)
setConversionService in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic org.springframework.core.convert.ConversionService getConversionService()
getConversionService in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void addPropertyEditorRegistrar(org.springframework.beans.PropertyEditorRegistrar registrar)
addPropertyEditorRegistrar in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void registerCustomEditor(Class<?> requiredType, Class<? extends PropertyEditor> propertyEditorClass)
registerCustomEditor in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void copyRegisteredEditorsTo(org.springframework.beans.PropertyEditorRegistry registry)
copyRegisteredEditorsTo in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void setTypeConverter(org.springframework.beans.TypeConverter typeConverter)
setTypeConverter in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic org.springframework.beans.TypeConverter getTypeConverter()
getTypeConverter in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void addEmbeddedValueResolver(org.springframework.util.StringValueResolver valueResolver)
addEmbeddedValueResolver in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic boolean hasEmbeddedValueResolver()
hasEmbeddedValueResolver in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic String resolveEmbeddedValue(String value)
resolveEmbeddedValue in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void addBeanPostProcessor(org.springframework.beans.factory.config.BeanPostProcessor beanPostProcessor)
addBeanPostProcessor in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic int getBeanPostProcessorCount()
getBeanPostProcessorCount in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void registerScope(String scopeName, org.springframework.beans.factory.config.Scope scope)
registerScope in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic String[] getRegisteredScopeNames()
getRegisteredScopeNames in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic org.springframework.beans.factory.config.Scope getRegisteredScope(String scopeName)
getRegisteredScope in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic AccessControlContext getAccessControlContext()
getAccessControlContext in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void copyConfigurationFrom(org.springframework.beans.factory.config.ConfigurableBeanFactory otherFactory)
copyConfigurationFrom in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void registerAlias(String beanName, String alias) throws org.springframework.beans.factory.BeanDefinitionStoreException
registerAlias in interface org.springframework.beans.factory.config.ConfigurableBeanFactoryorg.springframework.beans.factory.BeanDefinitionStoreExceptionpublic void resolveAliases(org.springframework.util.StringValueResolver valueResolver)
resolveAliases in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic org.springframework.beans.factory.config.BeanDefinition getMergedBeanDefinition(String beanName) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
getMergedBeanDefinition in interface org.springframework.beans.factory.config.ConfigurableBeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean isFactoryBean(String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isFactoryBean in interface org.springframework.beans.factory.config.ConfigurableBeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic void setCurrentlyInCreation(String beanName, boolean inCreation)
setCurrentlyInCreation in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic boolean isCurrentlyInCreation(String beanName)
isCurrentlyInCreation in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void registerDependentBean(String beanName, String dependentBeanName)
registerDependentBean in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic String[] getDependentBeans(String beanName)
getDependentBeans in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic String[] getDependenciesForBean(String beanName)
getDependenciesForBean in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void destroyBean(String beanName, Object beanInstance)
destroyBean in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void destroyScopedBean(String beanName)
destroyScopedBean in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic void destroySingletons()
destroySingletons in interface org.springframework.beans.factory.config.ConfigurableBeanFactorypublic org.springframework.beans.factory.BeanFactory getParentBeanFactory()
getParentBeanFactory in interface org.springframework.beans.factory.HierarchicalBeanFactorypublic boolean containsLocalBean(String name)
containsLocalBean in interface org.springframework.beans.factory.HierarchicalBeanFactorypublic void registerSingleton(String beanName, Object singletonObject)
registerSingleton in interface org.springframework.beans.factory.config.SingletonBeanRegistrypublic Object getSingleton(String beanName)
getSingleton in interface org.springframework.beans.factory.config.SingletonBeanRegistrypublic boolean containsSingleton(String beanName)
containsSingleton in interface org.springframework.beans.factory.config.SingletonBeanRegistrypublic String[] getSingletonNames()
getSingletonNames in interface org.springframework.beans.factory.config.SingletonBeanRegistrypublic int getSingletonCount()
getSingletonCount in interface org.springframework.beans.factory.config.SingletonBeanRegistrypublic Object getSingletonMutex()
getSingletonMutex in interface org.springframework.beans.factory.config.SingletonBeanRegistryCopyright © 2015–2017 SourcePond. All rights reserved.