Juergen Hoeller
4d7576ef85
revised use of id and display name (id may be null; SPR-5761)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1224 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Jennifer Hickey
9f87467445
SPR-5256
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1214 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
f67c8bcfd8
@Import detects and accepts existing configuration class in any order of processing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1176 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
1d1dba1693
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
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1127 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
b34a260984
ReloadableResourceBundleMessageSource correctly calculates filenames for locales with variant but without country now (SPR-5716)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1126 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
151cf74a10
added ScheduledTaskRegistrar etc
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1105 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
7205948651
avoid NPE for definitions without bean class specified
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1102 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
906adab5a4
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
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1065 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
bf86e7cc9d
@Configuration parsing fully relies on Spring's MetadataReader abstraction now
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1061 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
3eae3501e8
next cut of JavaConfig metadata reading revision: using cached MetadataReaders
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1046 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
79cf4ce20a
Temporarily ignoring GroovyScriptFactoryTests#testResourceScriptFromTag in order to allow more important fixes to roll out.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1041 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
8217d81d02
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.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1040 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
b4b61316a7
revised support for annotated factory methods (merged @FactoryMethod functionality into JavaConfig facility)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1033 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
7a4bcafcc6
@Resource names may use ${...} placeholders (SPR-5656)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@955 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
b818dd91a3
Renamed ConfigurationPostProcessorTests -> ConfigurationClassPostProcessorTests
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@936 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
610a8b70ea
Fixed SPR-5655 - dm Server issues with ConfigurationClassPostProcessor attempting to read .class files with ASM with incorrect class loader
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@935 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
c25fe064ce
@Value values may use ${...} placeholders (driven by PropertyPlaceholderConfigurer); @Autowired uses field/parameter name as fallback qualifier value (SPR-5152)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@899 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
532426a10d
Added test using custom properties file with util:properties and dereferenced with @Value("#{...}")
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@874 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
463f1e07de
polishing @Configuration tests
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@872 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
8d0d8a4de8
RESOLVED - issue SPR-5600: Make naming of @Configuration class processing-related artifacts consistent
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@871 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
d3e7583a50
Updated BeanMethodTests to reflect change from IllegalArgumentException -> IllegalStateException
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@867 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
eac93ebd59
resolved:
...
+ Provide @Primary annotation (SPR-5590)
+ Provide @Lazy annotation (SPR-5591)
+ Test @Bean initMethod/destroyMethod functionality (SPR-5592)
+ Test @Bean dependsOn functionality (SPR-5593)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@866 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
3e7fe100e2
RESOLVED - issue SPR-5596: Test @Autowired @Configuration class constructors
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@843 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
d96ebc4385
consolidated context.annotation.support -> context.annotation
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@842 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
f1a5d20a6c
IN PROGRESS - issue SPR-5599: Hook @Configuration class processing into <context:component-scan/> and <context:annotation-config/> through AnnotationConfigUtils#registerAnnotationConfigProcessors
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@832 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
40f9643c51
fixed broken "setManagedInterfaces" interface assertion (SPR-5615)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@827 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
41a4353644
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.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@815 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
4776108767
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)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@814 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
cc21b308e2
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
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@799 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
7e8c6e57cc
Tweaks to package-info.java files
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@791 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
5f9c23f04f
Consolidated Util and MutableAnnotationUtils classes into existing AsmUtils
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@790 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
868ca2bb4a
+ Moving .config.java module -> .context
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@786 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Mark Pollack
1748a09613
Add support for @ScopedProxy for factory beans using the @FactoryBean annotation within a @Component
...
Add missing unit tests
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@771 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
f6c70c07c5
generified FactoryBeans and further Java 5 code style updates
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@686 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
1d82467565
SimpleAliasRegistry's "getAliases" method returns transitive aliases now; @Qualifier value matching takes chained aliases of target beans into account as well
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@648 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
6ad7cabd2c
SmartApplicationListener interface supports source type checking; SimpleApplicationEventMulticaster caches information about event/source matches
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@646 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
793bf07941
revised expression parser API design
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@619 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
3e9e9e2267
added @Async annotation, AsyncExecutionInterceptor, AsyncAnnotationAdvisor
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@613 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
699b370990
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)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@611 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
47f3b9881b
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
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@607 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Juergen Hoeller
a3a4171c41
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
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@599 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Arjen Poutsma
b62e6238d1
Fixed usage of wrong TestBean package.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@577 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Arjen Poutsma
a768f11634
SPR-2581: Provide out of the box implementation of the thread scope
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@574 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Arjen Poutsma
df70cd2c62
javadoc
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@573 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Arjen Poutsma
f7f9621083
SPR-3360: util:property-path like functionality for the p-namespace
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@572 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
ba7ed6af44
moved XmlBeanFactoryTests and attendant XML from .testsuite -> .context
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@488 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
3d884b2342
refactored .context module's .beans.factory and .context.access tests in preparation for moving .beans.factory.xml tests from .testsuite -> .context
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@487 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
f29d1d5048
moved ApplicationContext-dependent .beans.factory.xml.* tests from .testsuite -> .context
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@485 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
694d409eb4
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
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@484 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago
Chris Beams
059906452e
+ refactoring .testsuite .aop.aspectj tests in preparation for migration to .context
...
+ updated all ivy.xml files to depend on AspectJ 1.6.2
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@480 50f2f4bb-b051-0410-bef5-90022cba6387
17 years ago