OsgiWebApplicationContext

public class OsgiWebApplicationContext implements WebApplicationContext

Constructors

OsgiWebApplicationContext

public OsgiWebApplicationContext(ApplicationContext applicationContext, ConfigurableWebApplicationContext configurableWebApplicationContext)

Methods

containsBean

public boolean containsBean(String name)

containsBeanDefinition

public boolean containsBeanDefinition(String beanName)

containsLocalBean

public boolean containsLocalBean(String name)

findAnnotationOnBean

public <A extends Annotation> A findAnnotationOnBean(String beanName, Class<A> annotationType)

getAliases

public String[] getAliases(String name)

getAutowireCapableBeanFactory

public AutowireCapableBeanFactory getAutowireCapableBeanFactory()

getBean

public Object getBean(String name)

getBean

public <T> T getBean(String name, Class<T> requiredType)

getBean

public <T> T getBean(Class<T> requiredType)

getBean

public Object getBean(String name, Object... args)

getBeanDefinitionCount

public int getBeanDefinitionCount()

getBeanDefinitionNames

public String[] getBeanDefinitionNames()

getBeanNamesForType

public String[] getBeanNamesForType(Class<?> type)

getBeanNamesForType

public String[] getBeanNamesForType(Class<?> type, boolean includeNonSingletons, boolean allowEagerInit)

getBeansOfType

public <T> Map<String, T> getBeansOfType(Class<T> type)

getBeansOfType

public <T> Map<String, T> getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)

getBeansWithAnnotation

public Map<String, Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType)

getClassLoader

public ClassLoader getClassLoader()

getDisplayName

public String getDisplayName()

getEnvironment

public ConfigurableEnvironment getEnvironment()

getId

public String getId()

getMessage

public String getMessage(String code, Object[] args, String defaultMessage, Locale locale)

getMessage

public String getMessage(String code, Object[] args, Locale locale)

getMessage

public String getMessage(MessageSourceResolvable resolvable, Locale locale)

getParent

public ApplicationContext getParent()

getParentBeanFactory

public BeanFactory getParentBeanFactory()

getResource

public Resource getResource(String location)

getResources

public Resource[] getResources(String locationPattern)

getServletContext

public ServletContext getServletContext()

getStartupDate

public long getStartupDate()

getType

public Class<?> getType(String name)

isPrototype

public boolean isPrototype(String name)

isSingleton

public boolean isSingleton(String name)

isTypeMatch

public boolean isTypeMatch(String name, Class<?> targetType)

publishEvent

public void publishEvent(ApplicationEvent event)