Package | Description |
---|---|
org.springframework.aop.framework |
Package containing Spring's basic AOP infrastructure, compliant with the
AOP Alliance interfaces.
|
org.springframework.aop.framework.adapter |
SPI package allowing Spring AOP framework to handle arbitrary advice types.
|
org.springframework.aop.framework.autoproxy |
Bean post-processors for use in ApplicationContexts to simplify AOP usage
by automatically creating AOP proxies without the need to use a ProxyFactoryBean.
|
org.springframework.aop.target | |
org.springframework.beans |
This package contains interfaces and classes for manipulating Java beans.
|
org.springframework.beans.factory |
The core package implementing Spring's lightweight Inversion of Control (IoC) container.
|
org.springframework.beans.factory.annotation |
Support package for annotation-driven bean configuration.
|
org.springframework.beans.factory.config |
SPI interfaces and configuration-related convenience classes for bean factories.
|
org.springframework.beans.factory.parsing |
Support infrastructure for bean definition parsing.
|
org.springframework.beans.factory.support |
Classes supporting the
org.springframework.beans.factory package. |
org.springframework.beans.factory.xml |
Contains an abstract XML-based
BeanFactory implementation,
including a standard "spring-beans" XSD. |
org.springframework.beans.support |
Classes supporting the org.springframework.beans package,
such as utility classes for sorting and holding lists of beans.
|
org.springframework.context |
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.
|
org.springframework.context.expression |
Expression parsing support within a Spring application context.
|
org.springframework.context.support |
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
|
org.springframework.context.weaving |
Load-time weaving support for a Spring application context, building on Spring's
LoadTimeWeaver abstraction. |
org.springframework.dao.support |
Support classes for DAO implementations,
providing miscellaneous utility methods.
|
org.springframework.jca.context |
Integration package that allows for deploying a Spring application context
as a JCA 1.7 compliant RAR file.
|
org.springframework.jms.annotation |
Annotations and support classes for declarative JMS listener endpoints.
|
org.springframework.jndi.support |
Support classes for JNDI usage,
including a JNDI-based BeanFactory implementation.
|
org.springframework.messaging.core |
Defines interfaces and implementation classes for messaging templates.
|
org.springframework.orm.hibernate5 |
Package providing integration of
Hibernate 5.x
with Spring concepts.
|
org.springframework.orm.jpa |
Package providing integration of JPA (Java Persistence API) with Spring concepts.
|
org.springframework.validation.beanvalidation |
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.
|
org.springframework.web.context.support |
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes. |
org.springframework.web.filter |
Provides generic filter base classes allowing for bean-style configuration.
|
org.springframework.web.method.annotation |
Support classes for annotation-based handler method processing.
|
org.springframework.web.reactive.handler |
Provides HandlerMapping implementations including abstract base classes.
|
org.springframework.web.reactive.result.view.freemarker |
Support classes for the integration of
FreeMarker
as Spring web view technology.
|
org.springframework.web.reactive.result.view.script |
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g.
|
org.springframework.web.servlet |
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
|
org.springframework.web.servlet.handler |
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
|
org.springframework.web.servlet.view |
Provides standard View and ViewResolver implementations,
including abstract base classes for custom implementations.
|
org.springframework.web.servlet.view.freemarker |
Support classes for the integration of
FreeMarker
as Spring web view technology.
|
org.springframework.web.servlet.view.groovy |
Support classes for the integration of
Groovy Templates as Spring web view technology.
|
org.springframework.web.servlet.view.script |
Support classes for views based on the JSR-223 script engine abstraction
(as included in Java 6+), e.g.
|
org.springframework.web.servlet.view.xslt |
Support classes for XSLT,
providing a View implementation for XSLT stylesheets.
|
org.springframework.web.socket.client.standard |
Client-side classes for use with standard Java WebSocket endpoints.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ProxyFactoryBean.getObject()
Return a proxy.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
AdvisorAdapterRegistrationManager.postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
java.lang.Object |
AdvisorAdapterRegistrationManager.postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object[] |
AbstractAutoProxyCreator.getAdvicesAndAdvisorsForBean(java.lang.Class<?> beanClass,
java.lang.String beanName,
TargetSource customTargetSource)
Return whether the given bean is to be proxied, what additional
advices (e.g.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
LazyInitTargetSource.getTarget() |
java.lang.Object |
PrototypeTargetSource.getTarget()
Obtain a new prototype instance for every call.
|
java.lang.Object |
ThreadLocalTargetSource.getTarget()
Implementation of abstract getTarget() method.
|
protected java.lang.Object |
AbstractPrototypeBasedTargetSource.newPrototypeInstance()
Subclasses should call this method to create a new prototype instance.
|
void |
AbstractPrototypeBasedTargetSource.setBeanFactory(BeanFactory beanFactory) |
void |
AbstractPoolingTargetSource.setBeanFactory(BeanFactory beanFactory) |
Modifier and Type | Class and Description |
---|---|
class |
BeanInstantiationException
Exception thrown when instantiation of a bean failed.
|
class |
ConversionNotSupportedException
Exception thrown when no suitable editor or converter can be found for a bean property.
|
class |
FatalBeanException
Thrown on an unrecoverable problem encountered in the
beans packages or sub-packages, e.g.
|
class |
InvalidPropertyException
Exception thrown when referring to an invalid bean property.
|
class |
MethodInvocationException
Thrown when a bean property getter or setter method throws an exception,
analogous to an InvocationTargetException.
|
class |
NotReadablePropertyException
Exception thrown on an attempt to get the value of a property
that isn't readable, because there's no getter method.
|
class |
NotWritablePropertyException
Exception thrown on an attempt to set the value of a property that
is not writable (typically because there is no setter method).
|
class |
NullValueInNestedPathException
Exception thrown when navigation of a valid nested property
path encounters a NullPointerException.
|
class |
PropertyAccessException
Superclass for exceptions related to a property access,
such as type mismatch or invocation target exception.
|
class |
PropertyBatchUpdateException
Combined exception, composed of individual PropertyAccessException instances.
|
class |
TypeMismatchException
Exception thrown on a type mismatch when trying to set a bean property.
|
Modifier and Type | Method and Description |
---|---|
static void |
BeanUtils.copyProperties(java.lang.Object source,
java.lang.Object target)
Copy the property values of the given source bean into the target bean.
|
static void |
BeanUtils.copyProperties(java.lang.Object source,
java.lang.Object target,
java.lang.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(java.lang.Object source,
java.lang.Object target,
java.lang.String... ignoreProperties)
Copy the property values of the given source bean into the given target bean,
ignoring the given "ignoreProperties".
|
static java.beans.PropertyDescriptor |
BeanUtils.findPropertyForMethod(java.lang.reflect.Method method)
Find a JavaBeans
PropertyDescriptor for the given method,
with the method either being the read method or the write method for
that bean property. |
static java.beans.PropertyDescriptor |
BeanUtils.findPropertyForMethod(java.lang.reflect.Method method,
java.lang.Class<?> clazz)
Find a JavaBeans
PropertyDescriptor for the given method,
with the method either being the read method or the write method for
that bean property. |
static java.beans.PropertyDescriptor |
BeanUtils.getPropertyDescriptor(java.lang.Class<?> clazz,
java.lang.String propertyName)
Retrieve the JavaBeans
PropertyDescriptors for the given property. |
static java.beans.PropertyDescriptor[] |
BeanUtils.getPropertyDescriptors(java.lang.Class<?> clazz)
Retrieve the JavaBeans
PropertyDescriptor s of a given class. |
protected AbstractNestablePropertyAccessor.PropertyHandler |
AbstractNestablePropertyAccessor.getPropertyHandler(java.lang.String propertyName)
Return the
AbstractNestablePropertyAccessor.PropertyHandler for the specified propertyName , navigating
if necessary. |
java.lang.Class<?> |
PropertyAccessor.getPropertyType(java.lang.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.
|
java.lang.Class<?> |
AbstractNestablePropertyAccessor.getPropertyType(java.lang.String propertyName) |
TypeDescriptor |
PropertyAccessor.getPropertyTypeDescriptor(java.lang.String propertyName)
Return a type descriptor for the specified property:
preferably from the read method, falling back to the write method.
|
TypeDescriptor |
AbstractNestablePropertyAccessor.getPropertyTypeDescriptor(java.lang.String propertyName) |
protected java.lang.Object |
AbstractNestablePropertyAccessor.getPropertyValue(AbstractNestablePropertyAccessor.PropertyTokenHolder tokens) |
java.lang.Object |
PropertyAccessor.getPropertyValue(java.lang.String propertyName)
Get the current value of the specified property.
|
abstract java.lang.Object |
AbstractPropertyAccessor.getPropertyValue(java.lang.String propertyName)
Actually get the value of a property.
|
java.lang.Object |
AbstractNestablePropertyAccessor.getPropertyValue(java.lang.String propertyName) |
protected void |
AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.PropertyTokenHolder tokens,
PropertyValue pv) |
void |
PropertyAccessor.setPropertyValue(PropertyValue pv)
Set the specified value as current property value.
|
void |
AbstractPropertyAccessor.setPropertyValue(PropertyValue pv) |
void |
AbstractNestablePropertyAccessor.setPropertyValue(PropertyValue pv) |
void |
PropertyAccessor.setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Set the specified value as current property value.
|
abstract void |
AbstractPropertyAccessor.setPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Actually set a property value.
|
void |
AbstractNestablePropertyAccessor.setPropertyValue(java.lang.String propertyName,
java.lang.Object value) |
void |
PropertyAccessor.setPropertyValues(java.util.Map<?,?> map)
Perform a batch update from a Map.
|
void |
AbstractPropertyAccessor.setPropertyValues(java.util.Map<?,?> map) |
void |
PropertyAccessor.setPropertyValues(PropertyValues pvs)
The preferred way to perform a batch update.
|
void |
AbstractPropertyAccessor.setPropertyValues(PropertyValues pvs) |
void |
PropertyAccessor.setPropertyValues(PropertyValues pvs,
boolean ignoreUnknown)
Perform a batch update with more control over behavior.
|
void |
AbstractPropertyAccessor.setPropertyValues(PropertyValues pvs,
boolean ignoreUnknown) |
void |
PropertyAccessor.setPropertyValues(PropertyValues pvs,
boolean ignoreUnknown,
boolean ignoreInvalid)
Perform a batch update with full control over behavior.
|
void |
AbstractPropertyAccessor.setPropertyValues(PropertyValues pvs,
boolean ignoreUnknown,
boolean ignoreInvalid) |
Modifier and Type | Class and Description |
---|---|
class |
BeanCreationException
Exception thrown when a BeanFactory encounters an error when
attempting to create a bean from a bean definition.
|
class |
BeanCreationNotAllowedException
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 |
BeanCurrentlyInCreationException
Exception thrown in case of a reference to a bean that's currently in creation.
|
class |
BeanDefinitionStoreException
Exception thrown when a BeanFactory encounters an invalid bean definition:
e.g.
|
class |
BeanExpressionException
Exception that indicates an expression evaluation attempt having failed.
|
class |
BeanInitializationException
Exception that a bean implementation is suggested to throw if its own
factory-aware initialization code fails.
|
class |
BeanIsAbstractException
Exception thrown when a bean instance has been requested for
a bean definition which has been marked as abstract.
|
class |
BeanIsNotAFactoryException
Exception thrown when a bean is not a factory, but a user tries to get
at the factory for the given bean name.
|
class |
BeanNotOfRequiredTypeException
Thrown when a bean doesn't match the expected type.
|
class |
CannotLoadBeanClassException
Exception thrown when the BeanFactory cannot load the specified class
of a given bean.
|
class |
FactoryBeanNotInitializedException
Exception to be thrown from a FactoryBean's
getObject() method
if the bean is not fully initialized yet, for example because it is involved
in a circular reference. |
class |
NoSuchBeanDefinitionException
Exception thrown when a
BeanFactory is asked for a bean instance for which it
cannot find a definition. |
class |
NoUniqueBeanDefinitionException
Exception thrown when a
BeanFactory is asked for a bean instance for which
multiple matching candidates have been found when only one matching bean was expected. |
class |
UnsatisfiedDependencyException
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 Type | Method and Description |
---|---|
static <T> T |
BeanFactoryUtils.beanOfType(ListableBeanFactory lbf,
java.lang.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,
java.lang.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,
java.lang.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,
java.lang.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.
|
static <T> java.util.Map<java.lang.String,T> |
BeanFactoryUtils.beansOfTypeIncludingAncestors(ListableBeanFactory lbf,
java.lang.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.
|
static <T> java.util.Map<java.lang.String,T> |
BeanFactoryUtils.beansOfTypeIncludingAncestors(ListableBeanFactory lbf,
java.lang.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 |
BeanFactory.getBean(java.lang.Class<T> requiredType)
Return the bean instance that uniquely matches the given object type, if any.
|
<T> T |
BeanFactory.getBean(java.lang.Class<T> requiredType,
java.lang.Object... args)
Return an instance, which may be shared or independent, of the specified bean.
|
java.lang.Object |
BeanFactory.getBean(java.lang.String name)
Return an instance, which may be shared or independent, of the specified bean.
|
<T> T |
BeanFactory.getBean(java.lang.String name,
java.lang.Class<T> requiredType)
Return an instance, which may be shared or independent, of the specified bean.
|
java.lang.Object |
BeanFactory.getBean(java.lang.String name,
java.lang.Object... args)
Return an instance, which may be shared or independent, of the specified bean.
|
<T> java.util.Map<java.lang.String,T> |
ListableBeanFactory.getBeansOfType(java.lang.Class<T> 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. |
<T> java.util.Map<java.lang.String,T> |
ListableBeanFactory.getBeansOfType(java.lang.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 of
getObjectType in the case of FactoryBeans. |
java.util.Map<java.lang.String,java.lang.Object> |
ListableBeanFactory.getBeansWithAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Find all beans whose
Class has the supplied Annotation type,
returning a Map of bean names with corresponding bean instances. |
T |
ObjectProvider.getIfAvailable()
Return an instance (possibly shared or independent) of the object
managed by this factory.
|
default T |
ObjectProvider.getIfAvailable(java.util.function.Supplier<T> defaultSupplier)
Return an instance (possibly shared or independent) of the object
managed by this factory.
|
T |
ObjectProvider.getIfUnique()
Return an instance (possibly shared or independent) of the object
managed by this factory.
|
default T |
ObjectProvider.getIfUnique(java.util.function.Supplier<T> defaultSupplier)
Return an instance (possibly shared or independent) of the object
managed by this factory.
|
T |
ObjectFactory.getObject()
Return an instance (possibly shared or independent)
of the object managed by this factory.
|
T |
ObjectProvider.getObject(java.lang.Object... args)
Return an instance (possibly shared or independent) of the object
managed by this factory.
|
default void |
ObjectProvider.ifAvailable(java.util.function.Consumer<T> dependencyConsumer)
Consume an instance (possibly shared or independent) of the object
managed by this factory, if available.
|
default void |
ObjectProvider.ifUnique(java.util.function.Consumer<T> dependencyConsumer)
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.
|
Constructor and Description |
---|
UnsatisfiedDependencyException(java.lang.String resourceDescription,
java.lang.String beanName,
InjectionPoint injectionPoint,
BeansException ex)
Create a new UnsatisfiedDependencyException.
|
UnsatisfiedDependencyException(java.lang.String resourceDescription,
java.lang.String beanName,
java.lang.String propertyName,
BeansException ex)
Create a new UnsatisfiedDependencyException.
|
Modifier and Type | Method and Description |
---|---|
protected <T> java.util.Map<java.lang.String,T> |
AutowiredAnnotationBeanPostProcessor.findAutowireCandidates(java.lang.Class<T> type)
Obtain all beans of the given type as autowire candidates.
|
java.lang.Object |
InitDestroyAnnotationBeanPostProcessor.postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
void |
CustomAutowireConfigurer.postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
void |
InitDestroyAnnotationBeanPostProcessor.postProcessBeforeDestruction(java.lang.Object bean,
java.lang.String beanName) |
java.lang.Object |
InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
static <T> T |
BeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactory beanFactory,
java.lang.Class<T> beanType,
java.lang.String qualifier)
Obtain a bean of type
T from the given BeanFactory declaring a
qualifier (e.g. |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Exception |
ServiceLocatorFactoryBean.createServiceLocatorException(java.lang.reflect.Constructor<java.lang.Exception> exceptionConstructor,
BeansException cause)
Create a service locator exception for the given cause.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
AutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(java.lang.Object existingBean,
java.lang.String beanName)
Apply
BeanPostProcessors to the given existing bean
instance, invoking their postProcessAfterInitialization methods. |
java.lang.Object |
AutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(java.lang.Object existingBean,
java.lang.String beanName)
Apply
BeanPostProcessors to the given existing bean
instance, invoking their postProcessBeforeInitialization methods. |
void |
AutowireCapableBeanFactory.applyBeanPropertyValues(java.lang.Object existingBean,
java.lang.String beanName)
Apply the property values of the bean definition with the given name to
the given bean instance.
|
java.lang.Object |
AutowireCapableBeanFactory.autowire(java.lang.Class<?> beanClass,
int autowireMode,
boolean dependencyCheck)
Instantiate a new bean instance of the given class with the specified autowire
strategy.
|
void |
AutowireCapableBeanFactory.autowireBean(java.lang.Object existingBean)
Populate the given bean instance through applying after-instantiation callbacks
and bean property post-processing (e.g.
|
void |
AutowireCapableBeanFactory.autowireBeanProperties(java.lang.Object existingBean,
int autowireMode,
boolean dependencyCheck)
Autowire the bean properties of the given bean instance by name or type.
|
java.lang.Object |
AutowireCapableBeanFactory.configureBean(java.lang.Object existingBean,
java.lang.String beanName)
Configure the given raw bean: autowiring bean properties, applying
bean property values, applying factory callbacks such as
setBeanName
and setBeanFactory , and also applying all bean post processors
(including ones which might wrap the given raw bean). |
java.lang.Object |
AutowireCapableBeanFactory.createBean(java.lang.Class<?> beanClass,
int autowireMode,
boolean dependencyCheck)
Fully create a new bean instance of the given class with the specified
autowire strategy.
|
<T> T |
AutowireCapableBeanFactory.createBean(java.lang.Class<T> beanClass)
Fully create a new bean instance of the given class.
|
java.lang.reflect.Constructor<?>[] |
InstantiationAwareBeanPostProcessorAdapter.determineCandidateConstructors(java.lang.Class<?> beanClass,
java.lang.String beanName) |
default java.lang.reflect.Constructor<?>[] |
SmartInstantiationAwareBeanPostProcessor.determineCandidateConstructors(java.lang.Class<?> beanClass,
java.lang.String beanName)
Determine the candidate constructors to use for the given bean.
|
java.lang.Object |
BeanExpressionResolver.evaluate(java.lang.String value,
BeanExpressionContext evalContext)
Evaluate the given value as an expression, if applicable;
return the value as-is otherwise.
|
java.lang.Object |
InstantiationAwareBeanPostProcessorAdapter.getEarlyBeanReference(java.lang.Object bean,
java.lang.String beanName) |
default java.lang.Object |
SmartInstantiationAwareBeanPostProcessor.getEarlyBeanReference(java.lang.Object bean,
java.lang.String beanName)
Obtain a reference for early access to the specified bean,
typically for the purpose of resolving a circular reference.
|
java.lang.Object |
PropertyPathFactoryBean.getObject() |
java.lang.Object |
AutowireCapableBeanFactory.initializeBean(java.lang.Object existingBean,
java.lang.String beanName)
Initialize the given raw bean, applying factory callbacks
such as
setBeanName and setBeanFactory ,
also applying all bean post processors (including ones which
might wrap the given raw bean). |
default java.lang.Object |
BeanPostProcessor.postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName)
Apply this BeanPostProcessor to the given new bean instance after any bean
initialization callbacks (like InitializingBean's
afterPropertiesSet
or a custom init-method). |
java.lang.Object |
InstantiationAwareBeanPostProcessorAdapter.postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
default boolean |
InstantiationAwareBeanPostProcessor.postProcessAfterInstantiation(java.lang.Object bean,
java.lang.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.
|
boolean |
InstantiationAwareBeanPostProcessorAdapter.postProcessAfterInstantiation(java.lang.Object bean,
java.lang.String beanName) |
void |
CustomScopeConfigurer.postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
void |
BeanFactoryPostProcessor.postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
Modify the application context's internal bean factory after its standard
initialization.
|
void |
DeprecatedBeanWarner.postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
void |
PropertyResourceConfigurer.postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
|
void |
CustomEditorConfigurer.postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
void |
DestructionAwareBeanPostProcessor.postProcessBeforeDestruction(java.lang.Object bean,
java.lang.String beanName)
Apply this BeanPostProcessor to the given bean instance before its
destruction, e.g.
|
default java.lang.Object |
BeanPostProcessor.postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName)
Apply this BeanPostProcessor to the given new bean instance before any bean
initialization callbacks (like InitializingBean's
afterPropertiesSet
or a custom init-method). |
java.lang.Object |
InstantiationAwareBeanPostProcessorAdapter.postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
default java.lang.Object |
InstantiationAwareBeanPostProcessor.postProcessBeforeInstantiation(java.lang.Class<?> beanClass,
java.lang.String beanName)
Apply this BeanPostProcessor before the target bean gets instantiated.
|
java.lang.Object |
InstantiationAwareBeanPostProcessorAdapter.postProcessBeforeInstantiation(java.lang.Class<?> beanClass,
java.lang.String beanName) |
default PropertyValues |
InstantiationAwareBeanPostProcessor.postProcessProperties(PropertyValues pvs,
java.lang.Object bean,
java.lang.String beanName)
Post-process the given property values before the factory applies them
to the given bean, without any need for property descriptors.
|
PropertyValues |
InstantiationAwareBeanPostProcessorAdapter.postProcessProperties(PropertyValues pvs,
java.lang.Object bean,
java.lang.String beanName) |
default PropertyValues |
InstantiationAwareBeanPostProcessor.postProcessPropertyValues(PropertyValues pvs,
java.beans.PropertyDescriptor[] pds,
java.lang.Object bean,
java.lang.String beanName)
Deprecated.
as of 5.1, in favor of
InstantiationAwareBeanPostProcessor.postProcessProperties(PropertyValues, Object, String) |
PropertyValues |
InstantiationAwareBeanPostProcessorAdapter.postProcessPropertyValues(PropertyValues pvs,
java.beans.PropertyDescriptor[] pds,
java.lang.Object bean,
java.lang.String beanName)
Deprecated.
|
java.lang.Class<?> |
InstantiationAwareBeanPostProcessorAdapter.predictBeanType(java.lang.Class<?> beanClass,
java.lang.String beanName) |
default java.lang.Class<?> |
SmartInstantiationAwareBeanPostProcessor.predictBeanType(java.lang.Class<?> beanClass,
java.lang.String beanName)
Predict the type of the bean to be eventually returned from this
processor's
InstantiationAwareBeanPostProcessor.postProcessBeforeInstantiation(java.lang.Class<?>, java.lang.String) callback. |
void |
ConfigurableListableBeanFactory.preInstantiateSingletons()
Ensure that all non-lazy-init singletons are instantiated, also considering
FactoryBeans . |
protected void |
PropertyOverrideConfigurer.processKey(ConfigurableListableBeanFactory factory,
java.lang.String key,
java.lang.String value)
Process the given key as 'beanName.property' entry.
|
protected void |
PropertyPlaceholderConfigurer.processProperties(ConfigurableListableBeanFactory beanFactoryToProcess,
java.util.Properties props)
Visit each bean definition in the given bean factory and attempt to replace ${...} property
placeholders with values from the given properties.
|
protected void |
PropertyOverrideConfigurer.processProperties(ConfigurableListableBeanFactory beanFactory,
java.util.Properties props) |
protected abstract void |
PropertyResourceConfigurer.processProperties(ConfigurableListableBeanFactory beanFactory,
java.util.Properties props)
Apply the given Properties to the given BeanFactory.
|
java.lang.Object |
DependencyDescriptor.resolveCandidate(java.lang.String beanName,
java.lang.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.
|
java.lang.Object |
AutowireCapableBeanFactory.resolveDependency(DependencyDescriptor descriptor,
java.lang.String requestingBeanName)
Resolve the specified dependency against the beans defined in this factory.
|
java.lang.Object |
AutowireCapableBeanFactory.resolveDependency(DependencyDescriptor descriptor,
java.lang.String requestingBeanName,
java.util.Set<java.lang.String> autowiredBeanNames,
TypeConverter typeConverter)
Resolve the specified dependency against the beans defined in this factory.
|
<T> NamedBeanHolder<T> |
AutowireCapableBeanFactory.resolveNamedBean(java.lang.Class<T> requiredType)
Resolve the bean instance that uniquely matches the given object type, if any,
including its bean name.
|
java.lang.Object |
DependencyDescriptor.resolveNotUnique(java.lang.Class<?> type,
java.util.Map<java.lang.String,java.lang.Object> matchingBeans)
Deprecated.
as of 5.1, in favor of
DependencyDescriptor.resolveNotUnique(ResolvableType, Map) |
java.lang.Object |
DependencyDescriptor.resolveNotUnique(ResolvableType type,
java.util.Map<java.lang.String,java.lang.Object> matchingBeans)
Resolve the specified not-unique scenario: by default,
throwing a
NoUniqueBeanDefinitionException . |
java.lang.Object |
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) |
Modifier and Type | Class and Description |
---|---|
class |
BeanDefinitionParsingException
Exception thrown when a bean definition reader encounters an error
during the parsing process.
|
Modifier and Type | Class and Description |
---|---|
class |
BeanDefinitionOverrideException
Subclass of
BeanDefinitionStoreException indicating an invalid override
attempt: typically registering a new definition for the same bean name while
DefaultListableBeanFactory.isAllowBeanDefinitionOverriding() is false . |
class |
BeanDefinitionValidationException
Exception thrown when the validation of a bean definition failed.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(java.lang.Object existingBean,
java.lang.String beanName) |
java.lang.Object |
AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(java.lang.Object existingBean,
java.lang.String beanName) |
void |
AbstractAutowireCapableBeanFactory.applyBeanPropertyValues(java.lang.Object existingBean,
java.lang.String beanName) |
java.lang.Object |
AbstractAutowireCapableBeanFactory.autowire(java.lang.Class<?> beanClass,
int autowireMode,
boolean dependencyCheck) |
void |
AbstractAutowireCapableBeanFactory.autowireBeanProperties(java.lang.Object existingBean,
int autowireMode,
boolean dependencyCheck) |
java.lang.Object |
AbstractAutowireCapableBeanFactory.configureBean(java.lang.Object existingBean,
java.lang.String beanName) |
java.lang.Object |
AbstractAutowireCapableBeanFactory.createBean(java.lang.Class<?> beanClass,
int autowireMode,
boolean dependencyCheck) |
<T> T |
AbstractAutowireCapableBeanFactory.createBean(java.lang.Class<T> beanClass) |
protected java.lang.reflect.Constructor<?>[] |
AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(java.lang.Class<?> beanClass,
java.lang.String beanName)
Determine candidate constructors to use for the given bean, checking all registered
SmartInstantiationAwareBeanPostProcessors . |
protected <T> T |
AbstractBeanFactory.doGetBean(java.lang.String name,
java.lang.Class<T> requiredType,
java.lang.Object[] args,
boolean typeCheckOnly)
Return an instance, which may be shared or independent, of the specified bean.
|
java.lang.Object |
DefaultListableBeanFactory.doResolveDependency(DependencyDescriptor descriptor,
java.lang.String beanName,
java.util.Set<java.lang.String> autowiredBeanNames,
TypeConverter typeConverter) |
<T> T |
DefaultListableBeanFactory.getBean(java.lang.Class<T> requiredType) |
<T> T |
StaticListableBeanFactory.getBean(java.lang.Class<T> requiredType) |
<T> T |
DefaultListableBeanFactory.getBean(java.lang.Class<T> requiredType,
java.lang.Object... args) |
<T> T |
StaticListableBeanFactory.getBean(java.lang.Class<T> requiredType,
java.lang.Object... args) |
java.lang.Object |
AbstractBeanFactory.getBean(java.lang.String name) |
java.lang.Object |
StaticListableBeanFactory.getBean(java.lang.String name) |
<T> T |
AbstractBeanFactory.getBean(java.lang.String name,
java.lang.Class<T> requiredType) |
<T> T |
StaticListableBeanFactory.getBean(java.lang.String name,
java.lang.Class<T> requiredType) |
<T> T |
AbstractBeanFactory.getBean(java.lang.String name,
java.lang.Class<T> requiredType,
java.lang.Object... args)
Return an instance, which may be shared or independent, of the specified bean.
|
java.lang.Object |
AbstractBeanFactory.getBean(java.lang.String name,
java.lang.Object... args) |
java.lang.Object |
StaticListableBeanFactory.getBean(java.lang.String name,
java.lang.Object... args) |
protected abstract BeanDefinition |
AbstractBeanFactory.getBeanDefinition(java.lang.String beanName)
Return the bean definition for the given bean name.
|
<T> ObjectProvider<T> |
DefaultListableBeanFactory.getBeanProvider(java.lang.Class<T> requiredType) |
<T> ObjectProvider<T> |
StaticListableBeanFactory.getBeanProvider(java.lang.Class<T> requiredType) |
<T> java.util.Map<java.lang.String,T> |
DefaultListableBeanFactory.getBeansOfType(java.lang.Class<T> type) |
<T> java.util.Map<java.lang.String,T> |
StaticListableBeanFactory.getBeansOfType(java.lang.Class<T> type) |
<T> java.util.Map<java.lang.String,T> |
DefaultListableBeanFactory.getBeansOfType(java.lang.Class<T> type,
boolean includeNonSingletons,
boolean allowEagerInit) |
<T> java.util.Map<java.lang.String,T> |
StaticListableBeanFactory.getBeansOfType(java.lang.Class<T> type,
boolean includeNonSingletons,
boolean allowEagerInit) |
java.util.Map<java.lang.String,java.lang.Object> |
StaticListableBeanFactory.getBeansWithAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
protected FactoryBean<?> |
FactoryBeanRegistrySupport.getFactoryBean(java.lang.String beanName,
java.lang.Object beanInstance)
Get a FactoryBean for the given bean if possible.
|
BeanDefinition |
AbstractBeanFactory.getMergedBeanDefinition(java.lang.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(java.lang.String beanName)
Return a merged RootBeanDefinition, traversing the parent bean definition
if the specified bean corresponds to a child bean definition.
|
java.lang.Object |
InstantiationStrategy.instantiate(RootBeanDefinition bd,
java.lang.String beanName,
BeanFactory owner)
Return an instance of the bean with the given name in this factory.
|
java.lang.Object |
InstantiationStrategy.instantiate(RootBeanDefinition bd,
java.lang.String beanName,
BeanFactory owner,
java.lang.reflect.Constructor<?> ctor,
java.lang.Object... args)
Return an instance of the bean with the given name in this factory,
creating it via the given constructor.
|
java.lang.Object |
InstantiationStrategy.instantiate(RootBeanDefinition bd,
java.lang.String beanName,
BeanFactory owner,
java.lang.Object factoryBean,
java.lang.reflect.Method factoryMethod,
java.lang.Object... args)
Return an instance of the bean with the given name in this factory,
creating it via the given factory method.
|
void |
BeanDefinitionRegistryPostProcessor.postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry)
Modify the application context's internal bean definition registry after its
standard initialization.
|
protected java.lang.Object |
FactoryBeanRegistrySupport.postProcessObjectFromFactoryBean(java.lang.Object object,
java.lang.String beanName)
Post-process the given object that has been obtained from the FactoryBean.
|
void |
DefaultListableBeanFactory.preInstantiateSingletons() |
protected void |
PropertiesBeanDefinitionReader.registerBeanDefinition(java.lang.String beanName,
java.util.Map<?,?> map,
java.lang.String prefix,
java.lang.String resourceDescription)
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(java.util.Map<?,?> map)
Register bean definitions contained in a Map, using all property keys (i.e.
|
int |
PropertiesBeanDefinitionReader.registerBeanDefinitions(java.util.Map<?,?> map,
java.lang.String prefix)
Register bean definitions contained in a Map.
|
int |
PropertiesBeanDefinitionReader.registerBeanDefinitions(java.util.Map<?,?> map,
java.lang.String prefix,
java.lang.String resourceDescription)
Register bean definitions contained in a Map.
|
java.lang.Object |
AbstractAutowireCapableBeanFactory.resolveDependency(DependencyDescriptor descriptor,
java.lang.String requestingBeanName) |
java.lang.Object |
DefaultListableBeanFactory.resolveDependency(DependencyDescriptor descriptor,
java.lang.String requestingBeanName,
java.util.Set<java.lang.String> autowiredBeanNames,
TypeConverter typeConverter) |
<T> NamedBeanHolder<T> |
DefaultListableBeanFactory.resolveNamedBean(java.lang.Class<T> requiredType) |
Modifier and Type | Class and Description |
---|---|
class |
XmlBeanDefinitionStoreException
XML-specific BeanDefinitionStoreException subclass that wraps a
SAXException , typically a SAXParseException
which contains information about the error location. |
Constructor and Description |
---|
XmlBeanFactory(Resource resource)
Deprecated.
Create a new XmlBeanFactory with the given resource,
which must be parsable using DOM.
|
XmlBeanFactory(Resource resource,
BeanFactory parentBeanFactory)
Deprecated.
Create a new XmlBeanFactory with the given input stream,
which must be parsable using DOM.
|
Modifier and Type | Method and Description |
---|---|
static void |
PropertyComparator.sort(java.util.List<?> source,
SortDefinition sortDefinition)
Sort the given List according to the given sort definition.
|
static void |
PropertyComparator.sort(java.lang.Object[] source,
SortDefinition sortDefinition)
Sort the given source according to the given sort definition.
|
Modifier and Type | Class and Description |
---|---|
class |
ApplicationContextException
Exception thrown during application context initialization.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigurableApplicationContext.refresh()
Load or refresh the persistent representation of the configuration,
which might an XML file, properties file, or relational database schema.
|
void |
ApplicationContextAware.setApplicationContext(ApplicationContext applicationContext)
Set the ApplicationContext that this object runs in.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
StandardBeanExpressionResolver.evaluate(java.lang.String value,
BeanExpressionContext evalContext) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractRefreshableApplicationContext.cancelRefresh(BeansException ex) |
protected void |
GenericApplicationContext.cancelRefresh(BeansException ex) |
protected void |
AbstractApplicationContext.cancelRefresh(BeansException ex)
Cancel this context's refresh attempt, resetting the
active flag
after an exception got thrown. |
Modifier and Type | Method and Description |
---|---|
<T> T |
AbstractApplicationContext.getBean(java.lang.Class<T> requiredType) |
<T> T |
AbstractApplicationContext.getBean(java.lang.Class<T> requiredType,
java.lang.Object... args) |
java.lang.Object |
AbstractApplicationContext.getBean(java.lang.String name) |
<T> T |
AbstractApplicationContext.getBean(java.lang.String name,
java.lang.Class<T> requiredType) |
java.lang.Object |
AbstractApplicationContext.getBean(java.lang.String name,
java.lang.Object... args) |
<T> java.util.Map<java.lang.String,T> |
AbstractApplicationContext.getBeansOfType(java.lang.Class<T> type) |
<T> java.util.Map<java.lang.String,T> |
AbstractApplicationContext.getBeansOfType(java.lang.Class<T> type,
boolean includeNonSingletons,
boolean allowEagerInit) |
java.util.Map<java.lang.String,java.lang.Object> |
AbstractApplicationContext.getBeansWithAnnotation(java.lang.Class<? extends java.lang.annotation.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 void |
AbstractXmlApplicationContext.loadBeanDefinitions(DefaultListableBeanFactory beanFactory)
Loads the bean definitions via an XmlBeanDefinitionReader.
|
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(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 of
PropertySources , which includes:
all environment property sources, if an Environment is present
merged local properties, if any
have been
specified
any property sources set by calling PropertySourcesPlaceholderConfigurer.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 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.
|
protected abstract void |
AbstractApplicationContext.refreshBeanFactory()
Subclasses must implement this method to perform the actual configuration load.
|
void |
StaticApplicationContext.registerPrototype(java.lang.String name,
java.lang.Class<?> clazz)
Register a prototype bean with the underlying bean factory.
|
void |
StaticApplicationContext.registerPrototype(java.lang.String name,
java.lang.Class<?> clazz,
MutablePropertyValues pvs)
Register a prototype bean with the underlying bean factory.
|
void |
StaticApplicationContext.registerSingleton(java.lang.String name,
java.lang.Class<?> clazz)
Register a singleton bean with the underlying bean factory.
|
void |
StaticApplicationContext.registerSingleton(java.lang.String name,
java.lang.Class<?> clazz,
MutablePropertyValues pvs)
Register a singleton bean with the underlying bean factory.
|
void |
ApplicationObjectSupport.setApplicationContext(ApplicationContext context) |
Constructor and Description |
---|
ClassPathXmlApplicationContext(java.lang.String... configLocations)
Create a new ClassPathXmlApplicationContext, loading the definitions
from the given XML files and automatically refreshing the context.
|
ClassPathXmlApplicationContext(java.lang.String configLocation)
Create a new ClassPathXmlApplicationContext, loading the definitions
from the given XML file and automatically refreshing the context.
|
ClassPathXmlApplicationContext(java.lang.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(java.lang.String[] configLocations,
boolean refresh)
Create a new ClassPathXmlApplicationContext, loading the definitions
from the given XML files.
|
ClassPathXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh,
ApplicationContext parent)
Create a new ClassPathXmlApplicationContext with the given parent,
loading the definitions from the given XML files.
|
ClassPathXmlApplicationContext(java.lang.String[] paths,
java.lang.Class<?> clazz)
Create a new ClassPathXmlApplicationContext, loading the definitions
from the given XML files and automatically refreshing the context.
|
ClassPathXmlApplicationContext(java.lang.String[] paths,
java.lang.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(java.lang.String path,
java.lang.Class<?> clazz)
Create a new ClassPathXmlApplicationContext, loading the definitions
from the given XML file and automatically refreshing the context.
|
FileSystemXmlApplicationContext(java.lang.String... configLocations)
Create a new FileSystemXmlApplicationContext, loading the definitions
from the given XML files and automatically refreshing the context.
|
FileSystemXmlApplicationContext(java.lang.String configLocation)
Create a new FileSystemXmlApplicationContext, loading the definitions
from the given XML file and automatically refreshing the context.
|
FileSystemXmlApplicationContext(java.lang.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.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh)
Create a new FileSystemXmlApplicationContext, loading the definitions
from the given XML files.
|
FileSystemXmlApplicationContext(java.lang.String[] configLocations,
boolean refresh,
ApplicationContext parent)
Create a new FileSystemXmlApplicationContext with the given parent,
loading the definitions from the given XML files.
|
StaticApplicationContext()
Create a new StaticApplicationContext.
|
StaticApplicationContext(ApplicationContext parent)
Create a new StaticApplicationContext with the given parent.
|
Modifier and Type | Method and Description |
---|---|
void |
AspectJWeavingEnabler.postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
java.lang.Object |
LoadTimeWeaverAwareProcessor.postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
Modifier and Type | Method and Description |
---|---|
void |
PersistenceExceptionTranslationInterceptor.setBeanFactory(BeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
ResourceAdapterApplicationContext.postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
JmsListenerAnnotationBeanPostProcessor.postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
java.lang.Object |
JmsListenerAnnotationBeanPostProcessor.postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
Modifier and Type | Method and Description |
---|---|
<T> T |
SimpleJndiBeanFactory.getBean(java.lang.Class<T> requiredType) |
<T> T |
SimpleJndiBeanFactory.getBean(java.lang.Class<T> requiredType,
java.lang.Object... args) |
java.lang.Object |
SimpleJndiBeanFactory.getBean(java.lang.String name) |
<T> T |
SimpleJndiBeanFactory.getBean(java.lang.String name,
java.lang.Class<T> requiredType) |
java.lang.Object |
SimpleJndiBeanFactory.getBean(java.lang.String name,
java.lang.Object... args) |
Modifier and Type | Method and Description |
---|---|
void |
GenericMessagingTemplate.setBeanFactory(BeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
Interceptor |
HibernateTransactionManager.getEntityInterceptor()
Return the current Hibernate entity interceptor, or
null if none. |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
BeanValidationPostProcessor.postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
java.lang.Object |
BeanValidationPostProcessor.postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
java.lang.Object |
ServletContextAwareProcessor.postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
Modifier and Type | Method and Description |
---|---|
protected void |
GenericFilterBean.initBeanWrapper(BeanWrapper bw)
Initialize the BeanWrapper for this GenericFilterBean,
possibly with custom editors.
|
Modifier and Type | Class and Description |
---|---|
class |
MethodArgumentConversionNotSupportedException
A ConversionNotSupportedException raised while resolving a method argument.
|
class |
MethodArgumentTypeMismatchException
A TypeMismatchException raised while resolving a controller method argument.
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleUrlHandlerMapping.initApplicationContext()
Calls the
SimpleUrlHandlerMapping.registerHandlers(java.util.Map<java.lang.String, java.lang.Object>) method in addition to the
superclass's initialization. |
protected void |
AbstractUrlHandlerMapping.registerHandler(java.lang.String[] urlPaths,
java.lang.String beanName)
Register the specified handler for the given URL paths.
|
protected void |
AbstractUrlHandlerMapping.registerHandler(java.lang.String urlPath,
java.lang.Object handler)
Register the specified handler for the given URL path.
|
protected void |
SimpleUrlHandlerMapping.registerHandlers(java.util.Map<java.lang.String,java.lang.Object> urlMap)
Register all handlers specified in the URL map for the corresponding paths.
|
Modifier and Type | Method and Description |
---|---|
protected FreeMarkerConfig |
FreeMarkerView.autodetectConfiguration()
Autodetect a
FreeMarkerConfig object via the ApplicationContext. |
Modifier and Type | Method and Description |
---|---|
protected ScriptTemplateConfig |
ScriptTemplateView.autodetectViewConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
HttpServletBean.initBeanWrapper(BeanWrapper bw)
Initialize the BeanWrapper for this HttpServletBean,
possibly with custom editors.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractDetectingUrlHandlerMapping.detectHandlers()
Register all handlers found in the current ApplicationContext.
|
void |
SimpleUrlHandlerMapping.initApplicationContext()
Calls the
SimpleUrlHandlerMapping.registerHandlers(java.util.Map<java.lang.String, java.lang.Object>) method in addition to the
superclass's initialization. |
protected void |
AbstractHandlerMapping.initApplicationContext()
Initializes the interceptors.
|
java.lang.Object |
SimpleServletPostProcessor.postProcessAfterInitialization(java.lang.Object bean,
java.lang.String beanName) |
void |
SimpleServletPostProcessor.postProcessBeforeDestruction(java.lang.Object bean,
java.lang.String beanName) |
java.lang.Object |
SimpleServletPostProcessor.postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName) |
protected void |
AbstractUrlHandlerMapping.registerHandler(java.lang.String[] urlPaths,
java.lang.String beanName)
Register the specified handler for the given URL paths.
|
protected void |
AbstractUrlHandlerMapping.registerHandler(java.lang.String urlPath,
java.lang.Object handler)
Register the specified handler for the given URL path.
|
protected void |
SimpleUrlHandlerMapping.registerHandlers(java.util.Map<java.lang.String,java.lang.Object> urlMap)
Register all handlers specified in the URL map for the corresponding paths.
|
Modifier and Type | Method and Description |
---|---|
void |
XmlViewResolver.afterPropertiesSet()
Pre-initialize the factory from the XML file.
|
void |
ResourceBundleViewResolver.afterPropertiesSet()
Eagerly initialize Locales if necessary.
|
void |
XmlViewResolver.destroy()
Close the view bean factory on context shutdown.
|
void |
ResourceBundleViewResolver.destroy()
Close the bundle View factories on context shutdown.
|
protected BeanFactory |
XmlViewResolver.initFactory()
Initialize the view bean factory from the XML file.
|
protected BeanFactory |
ResourceBundleViewResolver.initFactory(java.util.Locale locale)
|
protected View |
XmlViewResolver.loadView(java.lang.String viewName,
java.util.Locale locale) |
View |
BeanNameViewResolver.resolveViewName(java.lang.String viewName,
java.util.Locale locale) |
void |
ViewResolverComposite.setApplicationContext(ApplicationContext applicationContext) |
Modifier and Type | Method and Description |
---|---|
protected FreeMarkerConfig |
FreeMarkerView.autodetectConfiguration()
Autodetect a
FreeMarkerConfig object via the ApplicationContext. |
protected void |
FreeMarkerView.initServletContext(ServletContext servletContext)
Invoked on startup.
|
Modifier and Type | Method and Description |
---|---|
protected groovy.text.markup.MarkupTemplateEngine |
GroovyMarkupView.autodetectMarkupTemplateEngine()
Autodetect a MarkupTemplateEngine via the ApplicationContext.
|
Modifier and Type | Method and Description |
---|---|
protected ScriptTemplateConfig |
ScriptTemplateView.autodetectViewConfig() |
Modifier and Type | Method and Description |
---|---|
protected void |
XsltView.initApplicationContext()
Initialize this XsltView's TransformerFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotatedEndpointConnectionManager.setBeanFactory(BeanFactory beanFactory) |