Uses of Class
org.springframework.beans.BeansException
Package
Description
Package containing Spring's basic AOP infrastructure, compliant with the
AOP Alliance interfaces.
SPI package allowing Spring AOP framework to handle arbitrary advice types.
Bean post-processors for use in ApplicationContexts to simplify AOP usage
by automatically creating AOP proxies without the need to use a ProxyFactoryBean.
Various
TargetSource
implementations for use
with Spring AOP.This package contains interfaces and classes for manipulating Java beans.
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
Support package for annotation-driven bean configuration.
SPI interfaces and configuration-related convenience classes for bean factories.
Support infrastructure for bean definition parsing.
Classes supporting the
org.springframework.beans.factory
package.Contains an abstract XML-based
BeanFactory
implementation,
including a standard "spring-beans" XSD.Classes supporting the org.springframework.beans package,
such as utility classes for sorting and holding lists of beans.
This package builds on the beans package to add support for
message sources and for the Observer design pattern, and the
ability for application objects to obtain resources using a
consistent API.
Expression parsing support within a Spring application context.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Load-time weaving support for a Spring application context, building on Spring's
LoadTimeWeaver
abstraction.Support classes for DAO implementations,
providing miscellaneous utility methods.
Annotations and support classes for declarative JMS listener endpoints.
Support classes for JNDI usage,
including a JNDI-based BeanFactory implementation.
Defines interfaces and implementation classes for messaging templates.
Package providing integration of
Hibernate 5.x
with Spring concepts.
Package providing integration of JPA (Java Persistence API) with Spring concepts.
Support classes for integrating a JSR-303 Bean Validation provider
(such as Hibernate Validator) into a Spring ApplicationContext
and in particular with Spring's data binding and validation APIs.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.Provides generic filter base classes allowing for bean-style configuration.
Support classes for annotation-based handler method processing.
Provides HandlerMapping implementations including abstract base classes.
Support classes for serving static resources.
Support classes for the integration of
FreeMarker
as Spring web view technology.
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g.
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
Support classes for serving static resources.
Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
Support classes for the integration of
FreeMarker
as Spring web view technology.
Support classes for the integration of
Groovy Templates as Spring web view technology.
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g.
Support classes for XSLT,
providing a View implementation for XSLT stylesheets.
Client-side classes for use with standard Jakarta WebSocket endpoints.
-
Uses of BeansException in org.springframework.aop.framework
-
Uses of BeansException in org.springframework.aop.framework.adapter
Modifier and TypeMethodDescriptionAdvisorAdapterRegistrationManager.postProcessAfterInitialization
(Object bean, String beanName) AdvisorAdapterRegistrationManager.postProcessBeforeInitialization
(Object bean, String beanName) -
Uses of BeansException in org.springframework.aop.framework.autoproxy
Modifier and TypeMethodDescriptionprotected abstract Object[]
AbstractAutoProxyCreator.getAdvicesAndAdvisorsForBean
(Class<?> beanClass, String beanName, TargetSource customTargetSource) Return whether the given bean is to be proxied, what additional advices (e.g. -
Uses of BeansException in org.springframework.aop.target
Modifier and TypeMethodDescriptionLazyInitTargetSource.getTarget()
PrototypeTargetSource.getTarget()
Obtain a new prototype instance for every call.ThreadLocalTargetSource.getTarget()
Implementation of abstract getTarget() method.protected Object
AbstractPrototypeBasedTargetSource.newPrototypeInstance()
Subclasses should call this method to create a new prototype instance.final void
AbstractPoolingTargetSource.setBeanFactory
(BeanFactory beanFactory) void
AbstractPrototypeBasedTargetSource.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeansException in org.springframework.beans
Modifier and TypeClassDescriptionclass
Exception thrown when instantiation of a bean failed.class
Exception thrown when no suitable editor or converter can be found for a bean property.class
Thrown on an unrecoverable problem encountered in the beans packages or sub-packages, e.g.class
Exception thrown when referring to an invalid bean property.class
Thrown when a bean property getter or setter method throws an exception, analogous to an InvocationTargetException.class
Exception thrown on an attempt to get the value of a property that isn't readable, because there's no getter method.class
Exception thrown on an attempt to set the value of a property that is not writable (typically because there is no setter method).class
Exception thrown when navigation of a valid nested property path encounters a NullPointerException.class
Superclass for exceptions related to a property access, such as type mismatch or invocation target exception.class
Combined exception, composed of individual PropertyAccessException instances.class
Exception thrown on a type mismatch when trying to set a bean property.Modifier and TypeMethodDescriptionstatic void
BeanUtils.copyProperties
(Object source, Object target) Copy the property values of the given source bean into the target bean.static void
BeanUtils.copyProperties
(Object source, Object target, Class<?> editable) Copy the property values of the given source bean into the given target bean, only setting properties defined in the given "editable" class (or interface).static void
BeanUtils.copyProperties
(Object source, Object target, String... ignoreProperties) Copy the property values of the given source bean into the given target bean, ignoring the given "ignoreProperties".static PropertyDescriptor
BeanUtils.findPropertyForMethod
(Method method) Find a JavaBeansPropertyDescriptor
for the given method, with the method either being the read method or the write method for that bean property.static PropertyDescriptor
BeanUtils.findPropertyForMethod
(Method method, Class<?> clazz) Find a JavaBeansPropertyDescriptor
for the given method, with the method either being the read method or the write method for that bean property.static PropertyDescriptor
BeanUtils.getPropertyDescriptor
(Class<?> clazz, String propertyName) Retrieve the JavaBeansPropertyDescriptors
for the given property.static PropertyDescriptor[]
BeanUtils.getPropertyDescriptors
(Class<?> clazz) Retrieve the JavaBeansPropertyDescriptor
s of a given class.AbstractNestablePropertyAccessor.getPropertyHandler
(String propertyName) Return theAbstractNestablePropertyAccessor.PropertyHandler
for the specifiedpropertyName
, navigating if necessary.Class<?>
AbstractNestablePropertyAccessor.getPropertyType
(String propertyName) Class<?>
PropertyAccessor.getPropertyType
(String propertyName) Determine the property type for the specified property, either checking the property descriptor or checking the value in case of an indexed or mapped element.AbstractNestablePropertyAccessor.getPropertyTypeDescriptor
(String propertyName) PropertyAccessor.getPropertyTypeDescriptor
(String propertyName) Return a type descriptor for the specified property: preferably from the read method, falling back to the write method.AbstractNestablePropertyAccessor.getPropertyValue
(String propertyName) protected Object
AbstractNestablePropertyAccessor.getPropertyValue
(AbstractNestablePropertyAccessor.PropertyTokenHolder tokens) abstract Object
AbstractPropertyAccessor.getPropertyValue
(String propertyName) Actually get the value of a property.PropertyAccessor.getPropertyValue
(String propertyName) Get the current value of the specified property.void
AbstractNestablePropertyAccessor.setPropertyValue
(String propertyName, Object value) protected void
AbstractNestablePropertyAccessor.setPropertyValue
(AbstractNestablePropertyAccessor.PropertyTokenHolder tokens, PropertyValue pv) void
AbstractNestablePropertyAccessor.setPropertyValue
(PropertyValue pv) abstract void
AbstractPropertyAccessor.setPropertyValue
(String propertyName, Object value) Actually set a property value.void
AbstractPropertyAccessor.setPropertyValue
(PropertyValue pv) void
PropertyAccessor.setPropertyValue
(String propertyName, Object value) Set the specified value as current property value.void
PropertyAccessor.setPropertyValue
(PropertyValue pv) Set the specified value as current property value.void
AbstractPropertyAccessor.setPropertyValues
(Map<?, ?> map) void
AbstractPropertyAccessor.setPropertyValues
(PropertyValues pvs) void
AbstractPropertyAccessor.setPropertyValues
(PropertyValues pvs, boolean ignoreUnknown) void
AbstractPropertyAccessor.setPropertyValues
(PropertyValues pvs, boolean ignoreUnknown, boolean ignoreInvalid) void
PropertyAccessor.setPropertyValues
(Map<?, ?> map) Perform a batch update from a Map.void
PropertyAccessor.setPropertyValues
(PropertyValues pvs) The preferred way to perform a batch update.void
PropertyAccessor.setPropertyValues
(PropertyValues pvs, boolean ignoreUnknown) Perform a batch update with more control over behavior.void
PropertyAccessor.setPropertyValues
(PropertyValues pvs, boolean ignoreUnknown, boolean ignoreInvalid) Perform a batch update with full control over behavior. -
Uses of BeansException in org.springframework.beans.factory
Modifier and TypeClassDescriptionclass
Exception thrown when a BeanFactory encounters an error when attempting to create a bean from a bean definition.class
Exception thrown in case of a bean being requested despite bean creation currently not being allowed (for example, during the shutdown phase of a bean factory).class
Exception thrown in case of a reference to a bean that's currently in creation.class
Exception thrown when a BeanFactory encounters an invalid bean definition: e.g.class
Exception that indicates an expression evaluation attempt having failed.class
Exception that a bean implementation is suggested to throw if its own factory-aware initialization code fails.class
Exception thrown when a bean instance has been requested for a bean definition which has been marked as abstract.class
Exception thrown when a bean is not a factory, but a user tries to get at the factory for the given bean name.class
Thrown when a bean doesn't match the expected type.class
Exception thrown when the BeanFactory cannot load the specified class of a given bean.class
Exception to be thrown from a FactoryBean'sgetObject()
method if the bean is not fully initialized yet, for example because it is involved in a circular reference.class
Exception thrown when aBeanFactory
is asked for a bean instance for which it cannot find a definition.class
Exception thrown when aBeanFactory
is asked for a bean instance for which multiple matching candidates have been found when only one matching bean was expected.class
Exception thrown when a bean depends on other beans or simple properties that were not specified in the bean factory definition, although dependency checking was enabled.Modifier and TypeMethodDescriptionstatic <T> T
BeanFactoryUtils.beanOfType
(ListableBeanFactory lbf, Class<T> type) Return a single bean of the given type or subtypes, not looking in ancestor factories.static <T> T
BeanFactoryUtils.beanOfType
(ListableBeanFactory lbf, Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) Return a single bean of the given type or subtypes, not looking in ancestor factories.static <T> T
BeanFactoryUtils.beanOfTypeIncludingAncestors
(ListableBeanFactory lbf, Class<T> type) Return a single bean of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.static <T> T
BeanFactoryUtils.beanOfTypeIncludingAncestors
(ListableBeanFactory lbf, Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) Return a single bean of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.BeanFactoryUtils.beansOfTypeIncludingAncestors
(ListableBeanFactory lbf, Class<T> type) Return all beans of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.BeanFactoryUtils.beansOfTypeIncludingAncestors
(ListableBeanFactory lbf, Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) Return all beans of the given type or subtypes, also picking up beans defined in ancestor bean factories if the current bean factory is a HierarchicalBeanFactory.<T> T
Return the bean instance that uniquely matches the given object type, if any.<T> T
Return an instance, which may be shared or independent, of the specified bean.Return an instance, which may be shared or independent, of the specified bean.<T> T
Return an instance, which may be shared or independent, of the specified bean.Return an instance, which may be shared or independent, of the specified bean.ListableBeanFactory.getBeansOfType
(Class<T> type) Return the bean instances that match the given object type (including subclasses), judging from either bean definitions or the value ofgetObjectType
in the case of FactoryBeans.ListableBeanFactory.getBeansOfType
(Class<T> 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 ofgetObjectType
in the case of FactoryBeans.ListableBeanFactory.getBeansWithAnnotation
(Class<? extends Annotation> annotationType) Find all beans which are annotated with the suppliedAnnotation
type, returning a Map of bean names with corresponding bean instances.ObjectProvider.getIfAvailable()
Return an instance (possibly shared or independent) of the object managed by this factory.default T
ObjectProvider.getIfAvailable
(Supplier<T> defaultSupplier) Return an instance (possibly shared or independent) of the object managed by this factory.ObjectProvider.getIfUnique()
Return an instance (possibly shared or independent) of the object managed by this factory.default T
ObjectProvider.getIfUnique
(Supplier<T> defaultSupplier) Return an instance (possibly shared or independent) of the object managed by this factory.ObjectFactory.getObject()
Return an instance (possibly shared or independent) of the object managed by this factory.Return an instance (possibly shared or independent) of the object managed by this factory.default void
ObjectProvider.ifAvailable
(Consumer<T> dependencyConsumer) Consume an instance (possibly shared or independent) of the object managed by this factory, if available.default void
Consume an instance (possibly shared or independent) of the object managed by this factory, if unique.void
BeanFactoryAware.setBeanFactory
(BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance.ModifierConstructorDescriptionUnsatisfiedDependencyException
(String resourceDescription, String beanName, String propertyName, BeansException ex) Create a new UnsatisfiedDependencyException.UnsatisfiedDependencyException
(String resourceDescription, String beanName, InjectionPoint injectionPoint, BeansException ex) Create a new UnsatisfiedDependencyException. -
Uses of BeansException in org.springframework.beans.factory.annotation
Modifier and TypeMethodDescriptionInitDestroyAnnotationBeanPostProcessor.postProcessAfterInitialization
(Object bean, String beanName) void
CustomAutowireConfigurer.postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) void
InitDestroyAnnotationBeanPostProcessor.postProcessBeforeDestruction
(Object bean, String beanName) InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization
(Object bean, String beanName) static <T> T
BeanFactoryAnnotationUtils.qualifiedBeanOfType
(BeanFactory beanFactory, Class<T> beanType, String qualifier) Obtain a bean of typeT
from the givenBeanFactory
declaring a qualifier (e.g.BeanFactoryAnnotationUtils.qualifiedBeansOfType
(ListableBeanFactory beanFactory, Class<T> beanType, String qualifier) Retrieve all beans of typeT
from the givenBeanFactory
declaring a qualifier (e.g.static Object
ParameterResolutionDelegate.resolveDependency
(Parameter parameter, int parameterIndex, Class<?> containingClass, AutowireCapableBeanFactory beanFactory) Resolve the dependency for the suppliedParameter
from the suppliedAutowireCapableBeanFactory
. -
Uses of BeansException in org.springframework.beans.factory.config
Modifier and TypeMethodDescriptionprotected Exception
ServiceLocatorFactoryBean.createServiceLocatorException
(Constructor<Exception> exceptionConstructor, BeansException cause) Create a service locator exception for the given cause.Modifier and TypeMethodDescriptionAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization
(Object existingBean, String beanName) ApplyBeanPostProcessors
to the given existing bean instance, invoking theirpostProcessAfterInitialization
methods.AutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization
(Object existingBean, String beanName) ApplyBeanPostProcessors
to the given existing bean instance, invoking theirpostProcessBeforeInitialization
methods.void
AutowireCapableBeanFactory.applyBeanPropertyValues
(Object existingBean, String beanName) Apply the property values of the bean definition with the given name to the given bean instance.Instantiate a new bean instance of the given class with the specified autowire strategy.void
AutowireCapableBeanFactory.autowireBean
(Object existingBean) Populate the given bean instance through applying after-instantiation callbacks and bean property post-processing (e.g.void
AutowireCapableBeanFactory.autowireBeanProperties
(Object existingBean, int autowireMode, boolean dependencyCheck) Autowire the bean properties of the given bean instance by name or type.AutowireCapableBeanFactory.configureBean
(Object existingBean, String beanName) Configure the given raw bean: autowiring bean properties, applying bean property values, applying factory callbacks such assetBeanName
andsetBeanFactory
, and also applying all bean post processors (including ones which might wrap the given raw bean).AutowireCapableBeanFactory.createBean
(Class<?> beanClass, int autowireMode, boolean dependencyCheck) Deprecated.<T> T
AutowireCapableBeanFactory.createBean
(Class<T> beanClass) Fully create a new bean instance of the given class.default Class<?>
SmartInstantiationAwareBeanPostProcessor.determineBeanType
(Class<?> beanClass, String beanName) Determine the type of the bean to be eventually returned from this processor'sInstantiationAwareBeanPostProcessor.postProcessBeforeInstantiation(java.lang.Class<?>, java.lang.String)
callback.default Constructor<?>[]
SmartInstantiationAwareBeanPostProcessor.determineCandidateConstructors
(Class<?> beanClass, String beanName) Determine the candidate constructors to use for the given bean.BeanExpressionResolver.evaluate
(String value, BeanExpressionContext beanExpressionContext) Evaluate the given value as an expression, if applicable; return the value as-is otherwise.default Object
SmartInstantiationAwareBeanPostProcessor.getEarlyBeanReference
(Object bean, String beanName) Obtain a reference for early access to the specified bean, typically for the purpose of resolving a circular reference.PropertyPathFactoryBean.getObject()
AutowireCapableBeanFactory.initializeBean
(Object existingBean, String beanName) Initialize the given raw bean, applying factory callbacks such assetBeanName
andsetBeanFactory
, also applying all bean post processors (including ones which might wrap the given raw bean).default Object
BeanPostProcessor.postProcessAfterInitialization
(Object bean, String beanName) Apply thisBeanPostProcessor
to the given new bean instance after any bean initialization callbacks (like InitializingBean'safterPropertiesSet
or a custom init-method).default boolean
InstantiationAwareBeanPostProcessor.postProcessAfterInstantiation
(Object bean, String beanName) Perform operations after the bean has been instantiated, via a constructor or factory method, but before Spring property population (from explicit properties or autowiring) occurs.void
BeanFactoryPostProcessor.postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) Modify the application context's internal bean factory after its standard initialization.void
CustomEditorConfigurer.postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) void
CustomScopeConfigurer.postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) void
DeprecatedBeanWarner.postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) void
PropertyResourceConfigurer.postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) void
DestructionAwareBeanPostProcessor.postProcessBeforeDestruction
(Object bean, String beanName) Apply this BeanPostProcessor to the given bean instance before its destruction, e.g.default Object
BeanPostProcessor.postProcessBeforeInitialization
(Object bean, String beanName) Apply thisBeanPostProcessor
to the given new bean instance before any bean initialization callbacks (like InitializingBean'safterPropertiesSet
or a custom init-method).default Object
InstantiationAwareBeanPostProcessor.postProcessBeforeInstantiation
(Class<?> beanClass, String beanName) Apply this BeanPostProcessor before the target bean gets instantiated.default PropertyValues
InstantiationAwareBeanPostProcessor.postProcessProperties
(PropertyValues pvs, Object bean, String beanName) Post-process the given property values before the factory applies them to the given bean.default Class<?>
SmartInstantiationAwareBeanPostProcessor.predictBeanType
(Class<?> beanClass, String beanName) Predict the type of the bean to be eventually returned from this processor'sInstantiationAwareBeanPostProcessor.postProcessBeforeInstantiation(java.lang.Class<?>, java.lang.String)
callback.void
ConfigurableListableBeanFactory.preInstantiateSingletons()
Ensure that all non-lazy-init singletons are instantiated, also consideringFactoryBeans
.protected void
PropertyOverrideConfigurer.processKey
(ConfigurableListableBeanFactory factory, String key, String value) Process the given key as 'beanName.property' entry.protected void
PropertyOverrideConfigurer.processProperties
(ConfigurableListableBeanFactory beanFactory, Properties props) protected void
PropertyPlaceholderConfigurer.processProperties
(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props) Deprecated.Visit each bean definition in the given bean factory and attempt to replace ${...} property placeholders with values from the given properties.protected abstract void
PropertyResourceConfigurer.processProperties
(ConfigurableListableBeanFactory beanFactory, Properties props) Apply the given Properties to the given BeanFactory.AutowireCapableBeanFactory.resolveBeanByName
(String name, DependencyDescriptor descriptor) Resolve a bean instance for the given bean name, providing a dependency descriptor for exposure to target factory methods.DependencyDescriptor.resolveCandidate
(String beanName, Class<?> requiredType, BeanFactory beanFactory) Resolve the specified bean name, as a candidate result of the matching algorithm for this dependency, to a bean instance from the given factory.AutowireCapableBeanFactory.resolveDependency
(DependencyDescriptor descriptor, String requestingBeanName) Resolve the specified dependency against the beans defined in this factory.AutowireCapableBeanFactory.resolveDependency
(DependencyDescriptor descriptor, String requestingBeanName, Set<String> autowiredBeanNames, TypeConverter typeConverter) Resolve the specified dependency against the beans defined in this factory.<T> NamedBeanHolder<T>
AutowireCapableBeanFactory.resolveNamedBean
(Class<T> requiredType) Resolve the bean instance that uniquely matches the given object type, if any, including its bean name.DependencyDescriptor.resolveNotUnique
(ResolvableType type, Map<String, Object> matchingBeans) Resolve the specified not-unique scenario: by default, throwing aNoUniqueBeanDefinitionException
.DependencyDescriptor.resolveShortcut
(BeanFactory beanFactory) Resolve a shortcut for this dependency against the given factory, for example taking some pre-resolved information into account.void
ServiceLocatorFactoryBean.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeansException in org.springframework.beans.factory.parsing
Modifier and TypeClassDescriptionclass
Exception thrown when a bean definition reader encounters an error during the parsing process. -
Uses of BeansException in org.springframework.beans.factory.support
Modifier and TypeClassDescriptionclass
Subclass ofBeanDefinitionStoreException
indicating an invalid override attempt: typically registering a new definition for the same bean name whileDefaultListableBeanFactory.isAllowBeanDefinitionOverriding()
isfalse
.class
Exception thrown when the validation of a bean definition failed.class
A subclass ofBeanCreationException
which indicates that the target scope is not active, e.g.Modifier and TypeMethodDescriptionAbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization
(Object existingBean, String beanName) AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization
(Object existingBean, String beanName) void
AbstractAutowireCapableBeanFactory.applyBeanPropertyValues
(Object existingBean, String beanName) AbstractAutowireCapableBeanFactory.autowire
(Class<?> beanClass, int autowireMode, boolean dependencyCheck) void
AbstractAutowireCapableBeanFactory.autowireBeanProperties
(Object existingBean, int autowireMode, boolean dependencyCheck) AbstractAutowireCapableBeanFactory.configureBean
(Object existingBean, String beanName) AbstractAutowireCapableBeanFactory.createBean
(Class<?> beanClass, int autowireMode, boolean dependencyCheck) Deprecated.<T> T
AbstractAutowireCapableBeanFactory.createBean
(Class<T> beanClass) protected Constructor<?>[]
AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors
(Class<?> beanClass, String beanName) Determine candidate constructors to use for the given bean, checking all registeredSmartInstantiationAwareBeanPostProcessors
.protected <T> T
AbstractBeanFactory.doGetBean
(String name, Class<T> requiredType, Object[] args, boolean typeCheckOnly) Return an instance, which may be shared or independent, of the specified bean.DefaultListableBeanFactory.doResolveDependency
(DependencyDescriptor descriptor, String beanName, Set<String> autowiredBeanNames, TypeConverter typeConverter) <T> T
<T> T
Return an instance, which may be shared or independent, of the specified bean.<T> T
<T> T
<T> T
<T> T
<T> T
protected abstract BeanDefinition
AbstractBeanFactory.getBeanDefinition
(String beanName) Return the bean definition for the given bean name.<T> ObjectProvider<T>
StaticListableBeanFactory.getBeanProvider
(Class<T> requiredType) DefaultListableBeanFactory.getBeansOfType
(Class<T> type) DefaultListableBeanFactory.getBeansOfType
(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) StaticListableBeanFactory.getBeansOfType
(Class<T> type) StaticListableBeanFactory.getBeansOfType
(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) StaticListableBeanFactory.getBeansWithAnnotation
(Class<? extends Annotation> annotationType) protected FactoryBean<?>
FactoryBeanRegistrySupport.getFactoryBean
(String beanName, Object beanInstance) Get a FactoryBean for the given bean if possible.AbstractBeanFactory.getMergedBeanDefinition
(String name) Return a 'merged' BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.protected RootBeanDefinition
AbstractBeanFactory.getMergedLocalBeanDefinition
(String beanName) Return a merged RootBeanDefinition, traversing the parent bean definition if the specified bean corresponds to a child bean definition.InstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner) Return an instance of the bean with the given name in this factory.InstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner, Object factoryBean, Method factoryMethod, Object... args) Return an instance of the bean with the given name in this factory, creating it via the given factory method.InstantiationStrategy.instantiate
(RootBeanDefinition bd, String beanName, BeanFactory owner, Constructor<?> ctor, Object... args) Return an instance of the bean with the given name in this factory, creating it via the given constructor.void
BeanDefinitionRegistryPostProcessor.postProcessBeanDefinitionRegistry
(BeanDefinitionRegistry registry) Modify the application context's internal bean definition registry after its standard initialization.protected Object
FactoryBeanRegistrySupport.postProcessObjectFromFactoryBean
(Object object, String beanName) Post-process the given object that has been obtained from the FactoryBean.void
DefaultListableBeanFactory.preInstantiateSingletons()
protected void
PropertiesBeanDefinitionReader.registerBeanDefinition
(String beanName, Map<?, ?> map, String prefix, String resourceDescription) Deprecated.Get all property values, given a prefix (which will be stripped) and add the bean they define to the factory with the given name.int
PropertiesBeanDefinitionReader.registerBeanDefinitions
(Map<?, ?> map) Deprecated.Register bean definitions contained in a Map, using all property keys (i.e.int
PropertiesBeanDefinitionReader.registerBeanDefinitions
(Map<?, ?> map, String prefix) Deprecated.Register bean definitions contained in a Map.int
PropertiesBeanDefinitionReader.registerBeanDefinitions
(Map<?, ?> map, String prefix, String resourceDescription) Deprecated.Register bean definitions contained in a Map.AbstractAutowireCapableBeanFactory.resolveDependency
(DependencyDescriptor descriptor, String requestingBeanName) DefaultListableBeanFactory.resolveDependency
(DependencyDescriptor descriptor, String requestingBeanName, Set<String> autowiredBeanNames, TypeConverter typeConverter) <T> NamedBeanHolder<T>
DefaultListableBeanFactory.resolveNamedBean
(Class<T> requiredType) -
Uses of BeansException in org.springframework.beans.factory.xml
Modifier and TypeClassDescriptionclass
XML-specific BeanDefinitionStoreException subclass that wraps aSAXException
, typically aSAXParseException
which contains information about the error location. -
Uses of BeansException in org.springframework.beans.support
Modifier and TypeMethodDescriptionstatic void
PropertyComparator.sort
(Object[] source, SortDefinition sortDefinition) Sort the given source according to the given sort definition.static void
PropertyComparator.sort
(List<?> source, SortDefinition sortDefinition) Sort the given List according to the given sort definition. -
Uses of BeansException in org.springframework.context
Modifier and TypeClassDescriptionclass
Exception thrown during application context initialization.Modifier and TypeMethodDescriptionvoid
ConfigurableApplicationContext.refresh()
Load or refresh the persistent representation of the configuration, which might be from Java-based configuration, an XML file, a properties file, a relational database schema, or some other format.void
ApplicationContextAware.setApplicationContext
(ApplicationContext applicationContext) Set the ApplicationContext that this object runs in. -
Uses of BeansException in org.springframework.context.expression
Modifier and TypeMethodDescriptionStandardBeanExpressionResolver.evaluate
(String value, BeanExpressionContext beanExpressionContext) -
Uses of BeansException in org.springframework.context.support
Modifier and TypeMethodDescriptionprotected void
AbstractApplicationContext.cancelRefresh
(BeansException ex) Cancel this context's refresh attempt, resetting theactive
flag after an exception got thrown.protected void
AbstractRefreshableApplicationContext.cancelRefresh
(BeansException ex) protected void
GenericApplicationContext.cancelRefresh
(BeansException ex) Modifier and TypeMethodDescription<T> T
<T> T
<T> T
AbstractApplicationContext.getBeansOfType
(Class<T> type) AbstractApplicationContext.getBeansOfType
(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) AbstractApplicationContext.getBeansWithAnnotation
(Class<? extends Annotation> annotationType) protected void
ApplicationObjectSupport.initApplicationContext()
Subclasses can override this for custom initialization behavior.protected void
ApplicationObjectSupport.initApplicationContext
(ApplicationContext context) Subclasses can override this for custom initialization behavior.protected abstract void
AbstractRefreshableApplicationContext.loadBeanDefinitions
(DefaultListableBeanFactory beanFactory) Load bean definitions into the given bean factory, typically through delegating to one or more bean definition readers.protected void
AbstractXmlApplicationContext.loadBeanDefinitions
(DefaultListableBeanFactory beanFactory) Loads the bean definitions via an XmlBeanDefinitionReader.protected void
AbstractXmlApplicationContext.loadBeanDefinitions
(XmlBeanDefinitionReader reader) Load the bean definitions with the given XmlBeanDefinitionReader.protected void
AbstractApplicationContext.onRefresh()
Template method which can be overridden to add context-specific refresh work.void
PropertySourcesPlaceholderConfigurer.postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) Processing occurs by replacing ${...} placeholders in bean definitions by resolving each against this configurer's set ofPropertySources
, which includes: all environment property sources, if anEnvironment
is present merged local properties, if any have been specified any property sources set by callingPropertySourcesPlaceholderConfigurer.setPropertySources(org.springframework.core.env.PropertySources)
protected void
PropertySourcesPlaceholderConfigurer.processProperties
(ConfigurableListableBeanFactory beanFactoryToProcess, ConfigurablePropertyResolver propertyResolver) Visit each bean definition in the given bean factory and attempt to replace ${...} property placeholders with values from the given properties.void
AbstractApplicationContext.refresh()
protected abstract void
AbstractApplicationContext.refreshBeanFactory()
Subclasses must implement this method to perform the actual configuration load.protected final void
AbstractRefreshableApplicationContext.refreshBeanFactory()
This implementation performs an actual refresh of this context's underlying bean factory, shutting down the previous bean factory (if any) and initializing a fresh bean factory for the next phase of the context's lifecycle.void
StaticApplicationContext.registerPrototype
(String name, Class<?> clazz) Register a prototype bean with the underlying bean factory.void
StaticApplicationContext.registerPrototype
(String name, Class<?> clazz, MutablePropertyValues pvs) Register a prototype bean with the underlying bean factory.void
StaticApplicationContext.registerSingleton
(String name, Class<?> clazz) Register a singleton bean with the underlying bean factory.void
StaticApplicationContext.registerSingleton
(String name, Class<?> clazz, MutablePropertyValues pvs) Register a singleton bean with the underlying bean factory.final void
ApplicationObjectSupport.setApplicationContext
(ApplicationContext context) ModifierConstructorDescriptionClassPathXmlApplicationContext
(String configLocation) Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML file and automatically refreshing the context.ClassPathXmlApplicationContext
(String... configLocations) Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext
(String[] configLocations, boolean refresh) Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML files.ClassPathXmlApplicationContext
(String[] configLocations, boolean refresh, ApplicationContext parent) Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files.ClassPathXmlApplicationContext
(String[] paths, Class<?> clazz) Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext
(String[] paths, Class<?> clazz, ApplicationContext parent) Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext
(String[] configLocations, ApplicationContext parent) Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.ClassPathXmlApplicationContext
(String path, Class<?> clazz) Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML file and automatically refreshing the context.FileSystemXmlApplicationContext
(String configLocation) Create a new FileSystemXmlApplicationContext, loading the definitions from the given XML file and automatically refreshing the context.FileSystemXmlApplicationContext
(String... configLocations) Create a new FileSystemXmlApplicationContext, loading the definitions from the given XML files and automatically refreshing the context.FileSystemXmlApplicationContext
(String[] configLocations, boolean refresh) Create a new FileSystemXmlApplicationContext, loading the definitions from the given XML files.FileSystemXmlApplicationContext
(String[] configLocations, boolean refresh, ApplicationContext parent) Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files.FileSystemXmlApplicationContext
(String[] configLocations, ApplicationContext parent) Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.Create a new StaticApplicationContext.Create a new StaticApplicationContext with the given parent. -
Uses of BeansException in org.springframework.context.weaving
Modifier and TypeMethodDescriptionvoid
AspectJWeavingEnabler.postProcessBeanFactory
(ConfigurableListableBeanFactory beanFactory) LoadTimeWeaverAwareProcessor.postProcessBeforeInitialization
(Object bean, String beanName) -
Uses of BeansException in org.springframework.dao.support
Modifier and TypeMethodDescriptionvoid
PersistenceExceptionTranslationInterceptor.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeansException in org.springframework.jms.annotation
Modifier and TypeMethodDescriptionJmsListenerAnnotationBeanPostProcessor.postProcessAfterInitialization
(Object bean, String beanName) JmsListenerAnnotationBeanPostProcessor.postProcessBeforeInitialization
(Object bean, String beanName) -
Uses of BeansException in org.springframework.jndi.support
Modifier and TypeMethodDescription<T> T
<T> T
<T> T
-
Uses of BeansException in org.springframework.messaging.core
Modifier and TypeMethodDescriptionvoid
GenericMessagingTemplate.setBeanFactory
(BeanFactory beanFactory) -
Uses of BeansException in org.springframework.orm.hibernate5
Modifier and TypeMethodDescriptionHibernateTransactionManager.getEntityInterceptor()
Return the current Hibernate entity interceptor, ornull
if none. -
Uses of BeansException in org.springframework.orm.jpa
Modifier and TypeMethodDescriptionvoid
EntityManagerFactoryAccessor.setBeanFactory
(BeanFactory beanFactory) Retrieves an EntityManagerFactory by persistence unit name, if none set explicitly.void
JpaTransactionManager.setBeanFactory
(BeanFactory beanFactory) Retrieves an EntityManagerFactory by persistence unit name, if none set explicitly. -
Uses of BeansException in org.springframework.validation.beanvalidation
Modifier and TypeMethodDescriptionBeanValidationPostProcessor.postProcessAfterInitialization
(Object bean, String beanName) BeanValidationPostProcessor.postProcessBeforeInitialization
(Object bean, String beanName) -
Uses of BeansException in org.springframework.web.context.support
Modifier and TypeMethodDescriptionprotected void
GroovyWebApplicationContext.loadBeanDefinitions
(DefaultListableBeanFactory beanFactory) Loads the bean definitions via an GroovyBeanDefinitionReader.protected void
XmlWebApplicationContext.loadBeanDefinitions
(DefaultListableBeanFactory beanFactory) Loads the bean definitions via an XmlBeanDefinitionReader.ServletContextAwareProcessor.postProcessBeforeInitialization
(Object bean, String beanName) -
Uses of BeansException in org.springframework.web.filter
Modifier and TypeMethodDescriptionprotected void
GenericFilterBean.initBeanWrapper
(BeanWrapper bw) Initialize the BeanWrapper for this GenericFilterBean, possibly with custom editors. -
Uses of BeansException in org.springframework.web.method.annotation
Modifier and TypeClassDescriptionclass
A ConversionNotSupportedException raised while resolving a method argument.class
A TypeMismatchException raised while resolving a controller method argument. -
Uses of BeansException in org.springframework.web.reactive.handler
Modifier and TypeMethodDescriptionvoid
SimpleUrlHandlerMapping.initApplicationContext()
Calls theSimpleUrlHandlerMapping.registerHandlers(java.util.Map<java.lang.String, java.lang.Object>)
method in addition to the superclass's initialization.protected void
AbstractUrlHandlerMapping.registerHandler
(String[] urlPaths, String beanName) Register the specified handler for the given URL paths.protected void
AbstractUrlHandlerMapping.registerHandler
(String urlPath, Object handler) Register the specified handler for the given URL path.protected void
SimpleUrlHandlerMapping.registerHandlers
(Map<String, Object> urlMap) Register all handlers specified in the URL map for the corresponding paths. -
Uses of BeansException in org.springframework.web.reactive.resource
Modifier and TypeMethodDescriptionvoid
ResourceUrlProvider.setApplicationContext
(ApplicationContext applicationContext) -
Uses of BeansException in org.springframework.web.reactive.result.view.freemarker
Modifier and TypeMethodDescriptionprotected FreeMarkerConfig
FreeMarkerView.autodetectConfiguration()
Autodetect aFreeMarkerConfig
object in theApplicationContext
. -
Uses of BeansException in org.springframework.web.reactive.result.view.script
Modifier and TypeMethodDescriptionprotected ScriptTemplateConfig
ScriptTemplateView.autodetectViewConfig()
-
Uses of BeansException in org.springframework.web.servlet
Modifier and TypeMethodDescriptionprotected void
HttpServletBean.initBeanWrapper
(BeanWrapper bw) Initialize the BeanWrapper for this HttpServletBean, possibly with custom editors. -
Uses of BeansException in org.springframework.web.servlet.handler
Modifier and TypeMethodDescriptionprotected void
AbstractDetectingUrlHandlerMapping.detectHandlers()
Register all handlers found in the current ApplicationContext.protected void
AbstractHandlerMapping.initApplicationContext()
Initializes the interceptors.void
SimpleUrlHandlerMapping.initApplicationContext()
Calls theSimpleUrlHandlerMapping.registerHandlers(java.util.Map<java.lang.String, java.lang.Object>)
method in addition to the superclass's initialization.SimpleServletPostProcessor.postProcessAfterInitialization
(Object bean, String beanName) void
SimpleServletPostProcessor.postProcessBeforeDestruction
(Object bean, String beanName) SimpleServletPostProcessor.postProcessBeforeInitialization
(Object bean, String beanName) protected void
AbstractUrlHandlerMapping.registerHandler
(String[] urlPaths, String beanName) Register the specified handler for the given URL paths.protected void
AbstractUrlHandlerMapping.registerHandler
(String urlPath, Object handler) Register the specified handler for the given URL path.protected void
SimpleUrlHandlerMapping.registerHandlers
(Map<String, Object> urlMap) Register all handlers specified in the URL map for the corresponding paths. -
Uses of BeansException in org.springframework.web.servlet.resource
Modifier and TypeMethodDescriptionvoid
ResourceUrlProvider.setApplicationContext
(ApplicationContext applicationContext) -
Uses of BeansException in org.springframework.web.servlet.view
Modifier and TypeMethodDescriptionvoid
ResourceBundleViewResolver.afterPropertiesSet()
Deprecated.Eagerly initialize Locales if necessary.void
XmlViewResolver.afterPropertiesSet()
Deprecated.Pre-initialize the factory from the XML file.void
ResourceBundleViewResolver.destroy()
Deprecated.Close the bundle View factories on context shutdown.void
XmlViewResolver.destroy()
Deprecated.Close the view bean factory on context shutdown.protected BeanFactory
ResourceBundleViewResolver.initFactory
(Locale locale) Deprecated.protected BeanFactory
XmlViewResolver.initFactory()
Deprecated.Initialize the view bean factory from the XML file.protected View
Deprecated.BeanNameViewResolver.resolveViewName
(String viewName, Locale locale) void
ViewResolverComposite.setApplicationContext
(ApplicationContext applicationContext) -
Uses of BeansException in org.springframework.web.servlet.view.freemarker
Modifier and TypeMethodDescriptionprotected FreeMarkerConfig
FreeMarkerView.autodetectConfiguration()
Autodetect aFreeMarkerConfig
object via the ApplicationContext.protected void
FreeMarkerView.initServletContext
(ServletContext servletContext) Invoked on startup. -
Uses of BeansException in org.springframework.web.servlet.view.groovy
Modifier and TypeMethodDescriptionprotected groovy.text.markup.MarkupTemplateEngine
GroovyMarkupView.autodetectMarkupTemplateEngine()
Autodetect a MarkupTemplateEngine via the ApplicationContext. -
Uses of BeansException in org.springframework.web.servlet.view.script
Modifier and TypeMethodDescriptionprotected ScriptTemplateConfig
ScriptTemplateView.autodetectViewConfig()
-
Uses of BeansException in org.springframework.web.servlet.view.xslt
Modifier and TypeMethodDescriptionprotected void
XsltView.initApplicationContext()
Initialize this XsltView's TransformerFactory. -
Uses of BeansException in org.springframework.web.socket.client.standard
Modifier and TypeMethodDescriptionvoid
AnnotatedEndpointConnectionManager.setBeanFactory
(BeanFactory beanFactory)
AutowireCapableBeanFactory.createBean(Class)