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

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

Introduction

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

The text is from its open source code.

Implementation

org.springframework.context.ApplicationContext has the following implementations.
Click this link to see all its implementation.

Method

booleancontainsBean(String name)
Does this bean factory contain a bean definition or externally registered singleton instance with the given name?
booleancontainsBeanDefinition(String beanName)
Check if this bean factory contains a bean definition with the given name.
booleancontainsLocalBean(String name)
Return whether the local bean factory contains a bean of the given name, ignoring beans defined in ancestor contexts.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
AfindAnnotationOnBean(String beanName, Class annotationType)
Find an Annotation of annotationType on the specified bean, traversing its interfaces and super classes if no annotation can be found on the given class itself, as well as checking the bean's factory method (if any).
StringgetApplicationName()
Return a name for the deployed application that this context belongs to.
AutowireCapableBeanFactorygetAutowireCapableBeanFactory()
Expose AutowireCapableBeanFactory functionality for this context.
ObjectgetBean(String name)
Return an instance, which may be shared or independent, of the specified bean.
TgetBean(String name, Class requiredType)
Return an instance, which may be shared or independent, of the specified bean.
intgetBeanDefinitionCount()
Return the number of beans defined in the factory.
String[]getBeanDefinitionNames()
Return the names of all beans defined in this factory.
String[]getBeanNamesForAnnotation(Class annotationType)
Find all names of beans which are annotated with the supplied Annotation type, without creating corresponding bean instances yet.
String[]getBeanNamesForType(ResolvableType type)
Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans.
String[]getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit)
Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans.
MapgetBeansOfType(@Nullable Class type)
Return the bean instances that match the given object type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans.
MapgetBeansOfType(@Nullable Class type, boolean includeNonSingletons, boolean allowEagerInit)
Return the bean instances that match the given object type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans.
MapgetBeansWithAnnotation(Class annotationType)
Find all beans which are annotated with the supplied Annotation type, returning a Map of bean names with corresponding bean instances.
ClassgetClass()
Returns the runtime class of this Object .
ClassLoadergetClassLoader()
Expose the ClassLoader used by this ResourceLoader.
StringgetDisplayName()
Return a friendly name for this context.
EnvironmentgetEnvironment()
Return the Environment associated with this component.
StringgetId()
Return the unique id of this application context.
StringgetMessage(String code, @Nullable Object[] args, Locale locale)
Try to resolve the message.
ApplicationContextgetParent()
Return the parent context, or null if there is no parent and this is the root of the context hierarchy.
BeanFactorygetParentBeanFactory()
Return the parent bean factory, or null if there is none.
ResourcegetResource(String location)
Return a Resource handle for the specified resource location.
Resource[]getResources(String locationPattern)
Resolve the given location pattern into Resource objects.
longgetStartupDate()
Return the timestamp when this context was first loaded.
ClassgetType(String name)
Determine the type of the bean with the given name.
booleanisPrototype(String name)
Is this bean a prototype?
booleanisSingleton(String name)
Is this bean a shared singleton?
booleanisTypeMatch(String name, ResolvableType typeToMatch)
Check whether the bean with the given name matches the specified type.
voidpublishEvent(ApplicationEvent event)
Notify all matching listeners registered with this application of an application event.
StringtoString()
Returns a string representation of the object.
voidwait()
Causes the current thread to wait until it is awakened, typically by being notified or interrupted.