Juergen Hoeller
266a65982d
Servlet/Portlet ApplicationContexts use a specific id based on servlet/portlet name; DefaultListableBeanFactory references are serializable now when initialized with an id; scoped proxies are serializable now, for web scopes as well as for singleton beans; injected request/session references are serializable proxies for the current request now
17 years ago
Juergen Hoeller
4ccb352aac
ReloadableResourceBundleMessageSource correctly calculates filenames for locales with variant but without country now (SPR-5716)
17 years ago
Juergen Hoeller
1b5a433f22
added ScheduledTaskRegistrar etc
17 years ago
Juergen Hoeller
636d1db36d
avoid NPE for definitions without bean class specified
17 years ago
Juergen Hoeller
cea8f7f69e
custom stereotype annotations can be meta-annotated with @Service , @Controller etc as well; @Scope and @Transactional are now supported as meta-annotations on custom annotations
17 years ago
Juergen Hoeller
b5d21108da
@Configuration parsing fully relies on Spring's MetadataReader abstraction now
17 years ago
Juergen Hoeller
ea9d8925a2
next cut of JavaConfig metadata reading revision: using cached MetadataReaders
17 years ago
Chris Beams
4d509cebdb
Temporarily ignoring GroovyScriptFactoryTests#testResourceScriptFromTag in order to allow more important fixes to roll out.
17 years ago
Chris Beams
7ba4c563a6
Fixing build breakage with GroovyScriptFactoryTests.
...
The problem was that the Messenger object was not being proxed (assertTrue(AopUtils.isAopProxy(messenger)) was returning false). The cause for this seemed to be that the
pointcut was malformed / out of date, reading execution(* org.springframework.scripting.Messenger.*(..)), when the groovy Messenger class is actually declared in the org.springframework.scripting.groovy package.
I tried updating the fully-qualified package name in the pointcut expression, and this caused AspectJ matching errors saying that there was not such type that matches that FQ name.
So as a final resort, I removed the full-qualification entirely and went with execution(* *..Messenger.*(..)). All tests pass now, but it raises the question, why was AJ having matching errors? Is it because
the pointcut matching is being done before the groovy class is loaded? There could be a potential bug here.
17 years ago
Juergen Hoeller
14bd475519
revised support for annotated factory methods (merged @FactoryMethod functionality into JavaConfig facility)
17 years ago
Juergen Hoeller
859497b171
@Resource names may use ${...} placeholders (SPR-5656)
17 years ago
Chris Beams
d08d73f274
Renamed ConfigurationPostProcessorTests -> ConfigurationClassPostProcessorTests
17 years ago
Chris Beams
254bf7e403
Fixed SPR-5655 - dm Server issues with ConfigurationClassPostProcessor attempting to read .class files with ASM with incorrect class loader
17 years ago
Juergen Hoeller
b85d45725d
@Value values may use ${...} placeholders (driven by PropertyPlaceholderConfigurer); @Autowired uses field/parameter name as fallback qualifier value (SPR-5152)
17 years ago
Chris Beams
1b13d8fadf
Added test using custom properties file with util:properties and dereferenced with @Value("#{...}")
17 years ago
Chris Beams
cebc85067a
polishing @Configuration tests
17 years ago
Chris Beams
cc713ad524
RESOLVED - issue SPR-5600: Make naming of @Configuration class processing-related artifacts consistent
17 years ago
Chris Beams
68051ec72b
Updated BeanMethodTests to reflect change from IllegalArgumentException -> IllegalStateException
17 years ago
Chris Beams
69a762e86a
resolved:
...
+ Provide @Primary annotation (SPR-5590)
+ Provide @Lazy annotation (SPR-5591)
+ Test @Bean initMethod/destroyMethod functionality (SPR-5592)
+ Test @Bean dependsOn functionality (SPR-5593)
17 years ago
Chris Beams
aee7f1ce53
RESOLVED - issue SPR-5596: Test @Autowired @Configuration class constructors
17 years ago
Chris Beams
1697932c57
consolidated context.annotation.support -> context.annotation
17 years ago
Chris Beams
6698ed8420
IN PROGRESS - issue SPR-5599: Hook @Configuration class processing into <context:component-scan/> and <context:annotation-config/> through AnnotationConfigUtils#registerAnnotationConfigProcessors
17 years ago
Juergen Hoeller
40b06b5f19
fixed broken "setManagedInterfaces" interface assertion (SPR-5615)
17 years ago
Chris Beams
e5f4b4937c
Re-adding ConfigurationPostProcessorTests after its brief removal in r814. @Ignore-ing the testCglibClassesAreLoadedJustInTimeForEnhancement() method as it turns out this was one of the culprits in the recent build breakage. The classloader hacking causes subtle downstream effects, breaking unrelated tests. The test method is still useful, but should only be run on a manual basis to ensure CGLIB is not prematurely classloaded, and should not be run as part of the automated build.
17 years ago
Chris Beams
2db0f122c1
fixed two build-breaking issues:
...
+ reverted ClassMetadataReadingVisitor to revision 794
+ eliminated ConfigurationPostProcessorTests until further investigation determines why it causes downstream tests to fail (such as the seemingly unrelated ClassPathXmlApplicationContextTests)
17 years ago
Juergen Hoeller
4344832a47
qualifier annotations and @Value can be used at method level as well (applying to all parameters);
...
fixed EL evaluation of prepared constructor arguments for repeated prototype creation
17 years ago
Chris Beams
147709fa9e
Tweaks to package-info.java files
17 years ago
Chris Beams
22b25e0d7b
Consolidated Util and MutableAnnotationUtils classes into existing AsmUtils
17 years ago
Chris Beams
cd50e45645
+ Moving .config.java module -> .context
17 years ago
Mark Pollack
13dfa11def
Add support for @ScopedProxy for factory beans using the @FactoryBean annotation within a @Component
...
Add missing unit tests
17 years ago
Juergen Hoeller
160249c012
generified FactoryBeans and further Java 5 code style updates
17 years ago
Juergen Hoeller
9871e94cad
SimpleAliasRegistry's "getAliases" method returns transitive aliases now; @Qualifier value matching takes chained aliases of target beans into account as well
17 years ago
Juergen Hoeller
57874a6050
SmartApplicationListener interface supports source type checking; SimpleApplicationEventMulticaster caches information about event/source matches
17 years ago
Juergen Hoeller
08dd18df58
revised expression parser API design
17 years ago
Juergen Hoeller
777a104d48
added @Async annotation, AsyncExecutionInterceptor, AsyncAnnotationAdvisor
17 years ago
Juergen Hoeller
5a04ed502b
registered plain singletons will be fully matched according to their qualifiers; "systemProperties" bean is not considered a default match for type Properties anymore (SPR-5355)
17 years ago
Juergen Hoeller
60392d6e74
ApplicationListener beans get obtained on demand, supporting non-singletons as well; ApplicationListeners will be called in the order according to the Ordered contract; generified ApplicationListener interface
17 years ago
Juergen Hoeller
7e4fb09369
added "Future submit(Runnable)" and "Future submit(Callable)" to AsyncTaskExecutor; SchedulingTaskExecutor interface extends AsyncTaskExecutor; added ExecutorServiceAdapter class as a standard wrapper for a Spring TaskExecutor; added ThreadPoolExecutorFactoryBean; reduced backport-concurrent support to TaskExecutor adapters
17 years ago
Arjen Poutsma
16843b3a07
Fixed usage of wrong TestBean package.
17 years ago
Arjen Poutsma
ad2cc34b79
SPR-2581: Provide out of the box implementation of the thread scope
17 years ago
Arjen Poutsma
bf9ffe2d67
javadoc
17 years ago
Arjen Poutsma
becea6115e
SPR-3360: util:property-path like functionality for the p-namespace
17 years ago
Chris Beams
3da373eeaf
moved XmlBeanFactoryTests and attendant XML from .testsuite -> .context
17 years ago
Chris Beams
d083432478
refactored .context module's .beans.factory and .context.access tests in preparation for moving .beans.factory.xml tests from .testsuite -> .context
17 years ago
Chris Beams
7a0d9c7533
moved ApplicationContext-dependent .beans.factory.xml.* tests from .testsuite -> .context
17 years ago
Chris Beams
be53a80657
moved ApplicationContext-dependent .aop.* unit tests from .testsuite -> .context
...
in the process, identified and refactored two genuine integration tests (AopNamespaceHandlerScopeIntegrationTests, AdvisorAutoProxyCreatorIntegrationTests), which will remain in .testsuite due to broad-ranging dependencies
17 years ago
Chris Beams
d7a9d7c8e6
+ refactoring .testsuite .aop.aspectj tests in preparation for migration to .context
...
+ updated all ivy.xml files to depend on AspectJ 1.6.2
17 years ago
Chris Beams
5b9da399c6
moving .aop.aspectj.* unit tests from .testsuite -> .context
17 years ago
Chris Beams
ea68d343fa
eliminated svn:externals in favor of localized copies of shared artifacts
17 years ago
Chris Beams
579280d7bf
Whitespace polishing: leading spaces->tabs; updated eclipse configuration to default to leading tabs for all bundles
17 years ago