public final class BlueprintApplicationContext extends Object implements org.springframework.web.context.WebApplicationContext, 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.CONTEXT_ATTRIBUTES_BEAN_NAME, CONTEXT_PARAMETERS_BEAN_NAME, ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, SCOPE_APPLICATION, SCOPE_GLOBAL_SESSION, SCOPE_REQUEST, SCOPE_SESSION, SERVLET_CONTEXT_BEAN_NAME| Constructor and Description |
|---|
BlueprintApplicationContext(javax.servlet.ServletContext servletContext,
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 |
containsBeanDefinition(String beanName) |
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() |
<A extends Annotation> |
findAnnotationOnBean(String beanName,
Class<A> annotationType) |
AccessControlContext |
getAccessControlContext() |
String[] |
getAliases(String s) |
String |
getApplicationName() |
org.springframework.beans.factory.config.AutowireCapableBeanFactory |
getAutowireCapableBeanFactory() |
<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() |
int |
getBeanDefinitionCount() |
String[] |
getBeanDefinitionNames() |
org.springframework.beans.factory.config.BeanExpressionResolver |
getBeanExpressionResolver() |
String[] |
getBeanNamesForAnnotation(Class<? extends Annotation> annotationType) |
String[] |
getBeanNamesForType(Class<?> type) |
String[] |
getBeanNamesForType(Class<?> type,
boolean includeNonSingletons,
boolean allowEagerInit) |
String[] |
getBeanNamesForType(org.springframework.core.ResolvableType type) |
int |
getBeanPostProcessorCount() |
<T> Map<String,T> |
getBeansOfType(Class<T> type) |
<T> Map<String,T> |
getBeansOfType(Class<T> type,
boolean includeNonSingletons,
boolean allowEagerInit) |
Map<String,Object> |
getBeansWithAnnotation(Class<? extends Annotation> annotationType) |
ClassLoader |
getClassLoader() |
org.springframework.core.convert.ConversionService |
getConversionService() |
String[] |
getDependenciesForBean(String beanName) |
String[] |
getDependentBeans(String beanName) |
String |
getDisplayName() |
org.springframework.core.env.Environment |
getEnvironment() |
String |
getFilter() |
String |
getId() |
org.springframework.beans.factory.config.BeanDefinition |
getMergedBeanDefinition(String beanName) |
String |
getMessage(org.springframework.context.MessageSourceResolvable resolvable,
Locale locale) |
String |
getMessage(String code,
Object[] args,
Locale locale) |
String |
getMessage(String code,
Object[] args,
String defaultMessage,
Locale locale) |
org.springframework.context.ApplicationContext |
getParent() |
org.springframework.beans.factory.BeanFactory |
getParentBeanFactory() |
org.springframework.beans.factory.config.Scope |
getRegisteredScope(String scopeName) |
String[] |
getRegisteredScopeNames() |
org.springframework.core.io.Resource |
getResource(String location) |
org.springframework.core.io.Resource[] |
getResources(String locationPattern) |
javax.servlet.ServletContext |
getServletContext() |
Object |
getSingleton(String beanName) |
int |
getSingletonCount() |
Object |
getSingletonMutex() |
String[] |
getSingletonNames() |
long |
getStartupDate() |
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 |
publishEvent(org.springframework.context.ApplicationEvent event) |
void |
publishEvent(Object event) |
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 BlueprintApplicationContext(javax.servlet.ServletContext servletContext,
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.servletContext - bundleContext - public String getFilter()
public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged in interface org.osgi.framework.ServiceListenerpublic boolean containsBeanDefinition(String beanName)
containsBeanDefinition in interface org.springframework.beans.factory.ListableBeanFactorypublic int getBeanDefinitionCount()
getBeanDefinitionCount in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanDefinitionNames()
getBeanDefinitionNames in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanNamesForType(org.springframework.core.ResolvableType type)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanNamesForType(Class<?> type)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanNamesForType(Class<?> type, boolean includeNonSingletons, boolean allowEagerInit)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic <T> Map<String,T> getBeansOfType(Class<T> type) throws org.springframework.beans.BeansException
getBeansOfType in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.BeansExceptionpublic <T> Map<String,T> getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) throws org.springframework.beans.BeansException
getBeansOfType in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.BeansExceptionpublic String[] getBeanNamesForAnnotation(Class<? extends Annotation> annotationType)
getBeanNamesForAnnotation in interface org.springframework.beans.factory.ListableBeanFactorypublic Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType) throws org.springframework.beans.BeansException
getBeansWithAnnotation in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.BeansExceptionpublic <A extends Annotation> A findAnnotationOnBean(String beanName, Class<A> annotationType) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
findAnnotationOnBean in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic 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.SingletonBeanRegistrypublic String getId()
getId in interface org.springframework.context.ApplicationContextpublic String getApplicationName()
getApplicationName in interface org.springframework.context.ApplicationContextpublic String getDisplayName()
getDisplayName in interface org.springframework.context.ApplicationContextpublic long getStartupDate()
getStartupDate in interface org.springframework.context.ApplicationContextpublic org.springframework.context.ApplicationContext getParent()
getParent in interface org.springframework.context.ApplicationContextpublic org.springframework.beans.factory.config.AutowireCapableBeanFactory getAutowireCapableBeanFactory()
throws IllegalStateException
getAutowireCapableBeanFactory in interface org.springframework.context.ApplicationContextIllegalStateExceptionpublic void publishEvent(org.springframework.context.ApplicationEvent event)
publishEvent in interface org.springframework.context.ApplicationEventPublisherpublic void publishEvent(Object event)
publishEvent in interface org.springframework.context.ApplicationEventPublisherpublic String getMessage(String code, Object[] args, String defaultMessage, Locale locale)
getMessage in interface org.springframework.context.MessageSourcepublic String getMessage(String code, Object[] args, Locale locale) throws org.springframework.context.NoSuchMessageException
getMessage in interface org.springframework.context.MessageSourceorg.springframework.context.NoSuchMessageExceptionpublic String getMessage(org.springframework.context.MessageSourceResolvable resolvable, Locale locale) throws org.springframework.context.NoSuchMessageException
getMessage in interface org.springframework.context.MessageSourceorg.springframework.context.NoSuchMessageExceptionpublic org.springframework.core.env.Environment getEnvironment()
getEnvironment in interface org.springframework.core.env.EnvironmentCapablepublic org.springframework.core.io.Resource[] getResources(String locationPattern) throws IOException
getResources in interface org.springframework.core.io.support.ResourcePatternResolverIOExceptionpublic org.springframework.core.io.Resource getResource(String location)
getResource in interface org.springframework.core.io.ResourceLoaderpublic ClassLoader getClassLoader()
getClassLoader in interface org.springframework.core.io.ResourceLoaderpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface org.springframework.web.context.WebApplicationContextCopyright © 2015–2018 SourcePond. All rights reserved.