Java org.springframework.context.support GenericApplicationContext fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.context.support GenericApplicationContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.context.support GenericApplicationContext.

The text is from its open source code.

Subclass

org.springframework.context.support.GenericApplicationContext has subclasses.
Click this link to see all its subclasses.

Constructor

GenericApplicationContext()
Create a new GenericApplicationContext.
GenericApplicationContext(DefaultListableBeanFactory beanFactory)
Create a new GenericApplicationContext with the given DefaultListableBeanFactory.
GenericApplicationContext(@Nullable ApplicationContext parent)
Create a new GenericApplicationContext with the given parent.

Method

voidaddApplicationListener(ApplicationListener listener)
voidaddBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor)
voidclose()
Close this application context, destroying all beans in its bean factory.
booleancontainsBean(String name)
String[]getAliases(String name)
AutowireCapableBeanFactorygetAutowireCapableBeanFactory()
TgetBean(String name, Class requiredType)
ObjectgetBean(String name)
BeanDefinitiongetBeanDefinition(String beanName)
String[]getBeanDefinitionNames()
ConfigurableListableBeanFactorygetBeanFactory()
Return the single internal BeanFactory held by this context (as ConfigurableListableBeanFactory).
ListgetBeanFactoryPostProcessors()
Return the list of BeanFactoryPostProcessors that will get applied to the internal BeanFactory.
String[]getBeanNamesForType(ResolvableType type)
ObjectProvidergetBeanProvider(Class requiredType)
MapgetBeansOfType(@Nullable Class type)
DefaultListableBeanFactorygetDefaultListableBeanFactory()
Return the underlying bean factory of this context, available for registering bean definitions.
ConfigurableEnvironmentgetEnvironment()
Return the Environment for this application context in configurable form, allowing for further customization.
ApplicationContextgetParent()
Return the parent context, or null if there is no parent (that is, this context is the root of the context hierarchy).
ResourcegetResource(String location)
This implementation delegates to this context's ResourceLoader if set, falling back to the default superclass behavior else.
Resource[]getResources(String locationPattern)
This implementation delegates to this context's ResourceLoader if it implements the ResourcePatternResolver interface, falling back to the default superclass behavior else.
ClassgetType(String name)
booleanisActive()
voidpublishEvent(ApplicationEvent event)
Publish the given event to all listeners.
voidrefresh()
voidregisterAlias(String beanName, String alias)
voidregisterBean(Class beanClass, Object... constructorArgs)
Register a bean from the given bean class, optionally providing explicit constructor arguments for consideration in the autowiring process.
voidregisterBean(Class beanClass, BeanDefinitionCustomizer... customizers)
Register a bean from the given bean class, optionally customizing its bean definition metadata (typically declared as a lambda expression).
voidregisterBeanDefinition(String beanName, BeanDefinition beanDefinition)
voidregisterShutdownHook()
Register a shutdown hook with the JVM runtime, closing this context on JVM shutdown unless it has already been closed at that time.
voidsetClassLoader(@Nullable ClassLoader classLoader)
voidsetDisplayName(String displayName)
Set a friendly name for this context.
voidsetParent(@Nullable ApplicationContext parent)
Set the parent of this application context, also setting the parent of the internal BeanFactory accordingly.
voidsetResourceLoader(ResourceLoader resourceLoader)
Set a ResourceLoader to use for this context.
voidstart()