|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
ValueResolver implementations that will return String.@Autowired, as well as JSR 250's @PostConstruct,
@PreDestroy and @Resource (if available),
JAX-WS's @WebServiceRef (if available), EJB3's @EJB
(if available), and JPA's @PersistenceContext and
@PersistenceUnit (if available).@Transactional annotation on bean classes,
and that proxies are automatically to be created for the relevant
annotated beans.ValueResolver instances, delegating calls to
CompositeValueResolver.resolve(String, Class).CompositeValueResolver instance based on a map of
ValueResolver instances.
Bean methods.ExternalValue fields/methods against
environment variables.ConfigurationSupport.getObject(FactoryBean)
in the event that the underlying FactoryBean.getObject() method throws
an exception.FactoryBeanObjectCreationException with the
specified root cause.
FactoryBeanObjectCreationException with the
specified message explaining the failure.
Class.
ValueResolver beans from beanFactory into a new
CompositeValueResolver instance.
ValueResolver beans from beanFactory into a new
CompositeValueResolver instance.
Method
FactoryBean instance, first invoking any container
callbacks on the instance.
ConfigurationSupport.getObject(FactoryBean), but checks FactoryBean.getObjectType()
against user-supplied requiredType and then casts internally to return
a strongly-typed result.
MBeanRegistrationSupport
Configuration classes.@Required methods within bean and determine
whether they have been invoked.
ApplicationContext that accepts @Configuration
class literals and/or base package paths containing @Configuration classes.ContextLoader strategy for creating a
JavaConfigApplicationContext for a test's
@ContextConfiguration
Example usage:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"com.myco.TestDatabaseConfiguration", "com.myco.config"},
loader = JavaConfigContextLoader.class)
public MyTests { ...@Configuration classes
as bean definitions within this context's BeanFactory for later processing
by.ConfigurationPostProcessor
@Configuration classes as bean
definitions within this context's BeanFactory for later processing by
ConfigurationPostProcessor
context based on the supplied locations,
configures the context, and finally returns the context in fully refreshed state.
@ManagedResource annotations on
Spring-defined beans.ValueResolver implementation backed by a Spring MessageSource.ApplicationContext implementations that support Java
configuration classes as input.Configuration classes.Beans as primary for disambiguation when looking up beans by type.Properties object.PropertiesValueResolver object.
ExternalValue fields/methods against one or more properties files.@Required method for later interrogation.
@Required
annotation.ConfigurationPostProcessor.setBeanNamingStrategy(BeanNamingStrategy) instead
ExternalValue fields/methods against system properties.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||