public class BlueprintSimulatedSpringApplicationContext extends Object implements org.springframework.context.ApplicationContext
ApplicationContext to support the methods
called by membrane-core in a blueprint-based deployment.| Constructor and Description |
|---|
BlueprintSimulatedSpringApplicationContext(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBean(String arg0) |
boolean |
containsBeanDefinition(String arg0) |
boolean |
containsLocalBean(String arg0) |
<A extends Annotation> |
findAnnotationOnBean(String arg0,
Class<A> arg1) |
String[] |
getAliases(String arg0) |
String |
getApplicationName() |
org.springframework.beans.factory.config.AutowireCapableBeanFactory |
getAutowireCapableBeanFactory() |
<T> T |
getBean(Class<T> arg0) |
<T> T |
getBean(Class<T> aClass,
Object... objects) |
Object |
getBean(String name) |
<T> T |
getBean(String name,
Class<T> requiredType) |
Object |
getBean(String arg0,
Object... arg1) |
int |
getBeanDefinitionCount() |
String[] |
getBeanDefinitionNames() |
String[] |
getBeanNamesForAnnotation(Class<? extends Annotation> aClass) |
String[] |
getBeanNamesForType(Class<?> arg0) |
String[] |
getBeanNamesForType(Class<?> arg0,
boolean arg1,
boolean arg2) |
String[] |
getBeanNamesForType(org.springframework.core.ResolvableType resolvableType) |
<T> Map<String,T> |
getBeansOfType(Class<T> clazz) |
<T> Map<String,T> |
getBeansOfType(Class<T> arg0,
boolean arg1,
boolean arg2) |
Map<String,Object> |
getBeansWithAnnotation(Class<? extends Annotation> arg0) |
ClassLoader |
getClassLoader() |
String |
getDisplayName() |
org.springframework.core.env.Environment |
getEnvironment() |
String |
getId() |
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.core.io.Resource |
getResource(String arg0) |
org.springframework.core.io.Resource[] |
getResources(String arg0) |
long |
getStartupDate() |
Class<?> |
getType(String arg0) |
boolean |
isPrototype(String arg0) |
boolean |
isSingleton(String arg0) |
boolean |
isTypeMatch(String arg0,
Class<?> arg1) |
boolean |
isTypeMatch(String s,
org.springframework.core.ResolvableType resolvableType) |
void |
publishEvent(org.springframework.context.ApplicationEvent event) |
void |
publishEvent(Object o) |
public BlueprintSimulatedSpringApplicationContext(org.osgi.service.blueprint.container.BlueprintContainer blueprintContainer)
public <T> Map<String,T> getBeansOfType(Class<T> clazz) throws org.springframework.beans.BeansException
getBeansOfType in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.BeansExceptionpublic Object getBean(String name) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic <T> T getBean(String name, Class<T> requiredType) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic org.springframework.core.env.Environment getEnvironment()
getEnvironment in interface org.springframework.core.env.EnvironmentCapablepublic boolean containsBeanDefinition(String arg0)
containsBeanDefinition in interface org.springframework.beans.factory.ListableBeanFactorypublic <A extends Annotation> A findAnnotationOnBean(String arg0, Class<A> arg1)
findAnnotationOnBean 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 resolvableType)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanNamesForType(Class<?> arg0)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanNamesForType(Class<?> arg0, boolean arg1, boolean arg2)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic <T> Map<String,T> getBeansOfType(Class<T> arg0, boolean arg1, boolean arg2) throws org.springframework.beans.BeansException
getBeansOfType in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.BeansExceptionpublic String[] getBeanNamesForAnnotation(Class<? extends Annotation> aClass)
getBeanNamesForAnnotation in interface org.springframework.beans.factory.ListableBeanFactorypublic Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> arg0) throws org.springframework.beans.BeansException
getBeansWithAnnotation in interface org.springframework.beans.factory.ListableBeanFactoryorg.springframework.beans.BeansExceptionpublic boolean containsBean(String arg0)
containsBean in interface org.springframework.beans.factory.BeanFactorypublic String[] getAliases(String arg0)
getAliases in interface org.springframework.beans.factory.BeanFactorypublic <T> T getBean(Class<T> arg0) throws org.springframework.beans.BeansException
getBean in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.BeansExceptionpublic Object getBean(String arg0, Object... arg1) 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 Class<?> getType(String arg0) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
getType in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean isPrototype(String arg0) 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 isSingleton(String arg0) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isSingleton in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean isTypeMatch(String arg0, Class<?> arg1) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isTypeMatch in interface org.springframework.beans.factory.BeanFactoryorg.springframework.beans.factory.NoSuchBeanDefinitionExceptionpublic boolean containsLocalBean(String arg0)
containsLocalBean in interface org.springframework.beans.factory.HierarchicalBeanFactorypublic org.springframework.beans.factory.BeanFactory getParentBeanFactory()
getParentBeanFactory in interface org.springframework.beans.factory.HierarchicalBeanFactorypublic 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 void publishEvent(org.springframework.context.ApplicationEvent event)
publishEvent in interface org.springframework.context.ApplicationEventPublisherpublic void publishEvent(Object o)
publishEvent in interface org.springframework.context.ApplicationEventPublisherpublic org.springframework.core.io.Resource[] getResources(String arg0) throws IOException
getResources in interface org.springframework.core.io.support.ResourcePatternResolverIOExceptionpublic ClassLoader getClassLoader()
getClassLoader in interface org.springframework.core.io.ResourceLoaderpublic org.springframework.core.io.Resource getResource(String arg0)
getResource in interface org.springframework.core.io.ResourceLoaderpublic 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.ApplicationContextIllegalStateExceptionCopyright © 2021. All Rights Reserved.