Commit Graph

244 Commits

Author SHA1 Message Date
Andy Clement d372a9ac5d use new SpEL parser 2009-05-27 04:33:21 +00:00
Keith Donald 2fa2e54c72 polish 2009-05-26 16:22:09 +00:00
Keith Donald 07f19f7441 format system initial commit 2009-05-26 16:18:42 +00:00
Christian Dupuis 6cc33fc609 added spring.tooling descriptor and images for all namespaces 2009-05-26 11:58:09 +00:00
Sam Brannen af56f6497c Updated regarding generics; fixed typos. 2009-05-25 09:04:05 +00:00
Mark Fisher 0007643af9 SPR-4359 renamed 'concurrent' namespace to 'task' 2009-05-22 03:12:43 +00:00
Mark Fisher 1b302b70d0 SPR-4359 the 'scheduling' namespace is now 'concurrent' 2009-05-21 18:41:13 +00:00
Juergen Hoeller a3af9e7330 revised use of id and display name (id may be null; SPR-5761) 2009-05-20 00:12:19 +00:00
Juergen Hoeller da4f1d0eb7 revised use of id and display name (id may be null; SPR-5761) 2009-05-19 23:48:44 +00:00
Juergen Hoeller e137b10978 polishing 2009-05-19 22:33:30 +00:00
Juergen Hoeller fc1df58e2b fixed build; revised generic declarations 2009-05-19 22:31:31 +00:00
Jennifer Hickey 822ed03826 SPR-5256 2009-05-19 21:02:43 +00:00
Keith Donald 50bcecac95 removed unused import 2009-05-18 13:14:55 +00:00
Keith Donald 8cbab5acb6 costin code review comments 2009-05-18 13:13:34 +00:00
Keith Donald 46c9a003eb BindingPoint to ConversionPoint, javadoc 2009-05-15 20:32:23 +00:00
Keith Donald cf2453e8eb renamed TypeDescriptor to BindingPoint 2009-05-15 17:30:03 +00:00
Christian Dupuis 33de330b0e minor change to use registerBeanComponent instead of directly registering the BeanDefinition 2009-05-15 13:42:24 +00:00
Christian Dupuis 48c97342fe some minor tweaks to the scheduling namespace parser to make it more tooling friendly; applied new tools:annotation to method attribute in scheduling xsd 2009-05-15 13:24:28 +00:00
Christian Dupuis fba5e5f0db fixed tooling related problem where empty value of an attribute that should take a bean reference would call the RuntimeBeanReference constructor in the namespace parser and throw a IllegalArgumentException although the problem has already been reported using the ProblemReporter API 2009-05-15 13:22:30 +00:00
Juergen Hoeller 14732c5dc2 @Import detects and accepts existing configuration class in any order of processing 2009-05-13 20:49:45 +00:00
Juergen Hoeller 433d52b728 @Import detects and accepts existing configuration class of the desired type 2009-05-13 16:19:56 +00:00
Juergen Hoeller da71f266ae ConfigurationClassBeanDefinition implements AnnotatedBeanDefinition 2009-05-12 23:12:51 +00:00
Juergen Hoeller cce6e2f4cd added SourceExtractor support 2009-05-12 22:27:37 +00:00
Juergen Hoeller bbd69da37f updated all Spring Framework OSGI manifests to list unversioned imports explicitly; relaxed several OSGi bundle dependencies to optional and extended version ranges 2009-05-12 16:43:15 +00:00
Juergen Hoeller 20f12e6158 removed outdated Attributes references 2009-05-12 16:14:09 +00:00
Juergen Hoeller 12d6aa232a added setMetadataReaderFactory method 2009-05-12 16:13:36 +00:00
Juergen Hoeller e78c6fc317 explicitly declared SmartApplicationListener as ApplicationListener<ApplicationEvent> 2009-05-11 22:49:07 +00:00
Juergen Hoeller 0297116542 generified TypeConverter interface 2009-05-11 22:44:33 +00:00
Mark Fisher ff36a31874 SPR-4359 Added support for a 'task-scheduler' element. 2009-05-08 20:32:11 +00:00
Mark Fisher 3e9b9a8a2a SPR-4359 Initial commit of scheduling namespace support. 2009-05-08 18:32:07 +00:00
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 2009-05-07 22:29:55 +00:00
Juergen Hoeller 4ccb352aac ReloadableResourceBundleMessageSource correctly calculates filenames for locales with variant but without country now (SPR-5716) 2009-05-07 09:24:34 +00:00
Juergen Hoeller 0320445316 moved ScheduledTaskRegistrar to new config package (where the scheduling namespace will live as well) 2009-05-06 08:47:18 +00:00
Juergen Hoeller 1b5a433f22 added ScheduledTaskRegistrar etc 2009-05-05 18:40:43 +00:00
Juergen Hoeller 636d1db36d avoid NPE for definitions without bean class specified 2009-05-05 18:33:20 +00:00
Juergen Hoeller a6124793fc polishing 2009-05-05 09:36:53 +00:00
Juergen Hoeller 6930859e82 removed StandardScopes pseudo-enum (superseded by meta-annotated scopes) 2009-05-05 09:32:55 +00:00
Thomas Risberg 15b33684a7 fixed JavaDoc 2009-04-29 21:12:45 +00:00
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 2009-04-26 11:41:06 +00:00
Juergen Hoeller b5d21108da @Configuration parsing fully relies on Spring's MetadataReader abstraction now 2009-04-24 11:16:46 +00:00
Juergen Hoeller ea9d8925a2 next cut of JavaConfig metadata reading revision: using cached MetadataReaders 2009-04-22 10:46:24 +00:00
Chris Beams 4d509cebdb Temporarily ignoring GroovyScriptFactoryTests#testResourceScriptFromTag in order to allow more important fixes to roll out. 2009-04-21 18:14:08 +00:00
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.
2009-04-21 17:20:39 +00:00
Chris Beams 7d10d05b27 (temporarily) increasing visibility of the ConfigurationClassAnnotation interface in an attempt to resolve the issue encountered at http://is.gd/tCud 2009-04-21 16:24:54 +00:00
Juergen Hoeller 14bd475519 revised support for annotated factory methods (merged @FactoryMethod functionality into JavaConfig facility) 2009-04-19 23:45:31 +00:00
Arjen Poutsma 6495bdd8c8 Added AspectJ dependency 2009-04-18 09:06:04 +00:00
Thomas Risberg 1facd45c5e switched to use XInclude 2009-04-14 21:37:40 +00:00
Juergen Hoeller 9baf9cdc2f reintroduced "removeApplicationListener" method as well 2009-04-12 20:59:52 +00:00
Costin Leau f6ecffdba7 + osgi manifest updates 2009-04-11 20:57:09 +00:00
Juergen Hoeller 73dd6c28a3 reintroduced "removeAllListeners()" method since Spring DM uses it 2009-04-09 18:18:54 +00:00
Mark Pollack 362629d03b Change version from 3.0.0.M3 to 3.0.0.BUILD-SNAPSHOT (again) 2009-04-09 14:38:35 +00:00
Juergen Hoeller 859497b171 @Resource names may use ${...} placeholders (SPR-5656) 2009-04-09 09:14:06 +00:00
Chris Beams d08d73f274 Renamed ConfigurationPostProcessorTests -> ConfigurationClassPostProcessorTests 2009-04-06 21:29:30 +00:00
Chris Beams 254bf7e403 Fixed SPR-5655 - dm Server issues with ConfigurationClassPostProcessor attempting to read .class files with ASM with incorrect class loader 2009-04-06 21:23:37 +00:00
Chris Beams e500348ca7 Fixed mystyped dependency on org.antlr 3.0.1 in context's Eclipse .classpath 2009-04-06 19:43:41 +00:00
Andy Clement 4c5854d017 objects flowing around in expression evaluation are now TypedValue's - these carry generics info, used for conversions. 2009-04-03 23:39:14 +00:00
Mark Pollack 8f76197485 Change version from 3.0.0.M3 to 3.0.0.BUILD-SNAPSHOT 2009-04-03 14:03:48 +00:00
Andy Clement 959cc95c3f design change - no longer surfacing typeDescriptor through property accessor. conversion done internally in property write() code 2009-04-01 23:27:49 +00:00
Andy Clement 00018e511d implement new interface method 2009-04-01 21:58:24 +00:00
Juergen Hoeller b85d45725d @Value values may use ${...} placeholders (driven by PropertyPlaceholderConfigurer); @Autowired uses field/parameter name as fallback qualifier value (SPR-5152) 2009-03-31 20:27:42 +00:00
Juergen Hoeller aa8bd6313b added "unregisterManagedResource" method to MBeanExporter/MBeanExportOperations (SPR-5517) 2009-03-31 14:28:14 +00:00
Chris Beams 1b13d8fadf Added test using custom properties file with util:properties and dereferenced with @Value("#{...}") 2009-03-30 17:17:44 +00:00
Chris Beams cebc85067a polishing @Configuration tests 2009-03-30 16:02:04 +00:00
Chris Beams cc713ad524 RESOLVED - issue SPR-5600: Make naming of @Configuration class processing-related artifacts consistent 2009-03-30 15:26:21 +00:00
Mark Pollack 4c7c30985f Change antlr version to be 3.0.1 so that is consistent across the project 2009-03-30 14:42:34 +00:00
Mark Pollack 351fba1a04 POM maintenance
Place parent pom in publicly accessible directory (org.sf.spring-parent).  
Create a component list pom in org.sf.spring-library.
2009-03-29 09:56:38 +00:00
Chris Beams 68051ec72b Updated BeanMethodTests to reflect change from IllegalArgumentException -> IllegalStateException 2009-03-28 22:29:28 +00:00
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)
2009-03-28 22:21:50 +00:00
Mark Pollack 5f21cbd9da POM maintenance 2009-03-27 21:28:51 +00:00
Juergen Hoeller 82fd947712 polishing 2009-03-27 17:41:03 +00:00
Juergen Hoeller 225eb6bcd9 refined version ranges in OSGi manifests 2009-03-27 17:29:48 +00:00
Scott Andrews c488f3768c updating eclipse classpath settings 2009-03-27 14:21:04 +00:00
Chris Beams aee7f1ce53 RESOLVED - issue SPR-5596: Test @Autowired @Configuration class constructors 2009-03-27 05:36:29 +00:00
Chris Beams 1697932c57 consolidated context.annotation.support -> context.annotation 2009-03-27 04:57:13 +00:00
Chris Beams 2c0c523d70 don't assert that CGLIB must be present unless there is at least one @Configuration class found 2009-03-27 03:10:41 +00:00
Chris Beams af058e599d fixing tests in .test package that were failing due to missing CGLIB dependency 2009-03-27 02:10:41 +00:00
Juergen Hoeller ef41a12fea updated to JRuby 1.2 (remaining compatible with JRuby 1.1 and above) 2009-03-27 00:01:41 +00:00
Chris Beams 6698ed8420 IN PROGRESS - issue SPR-5599: Hook @Configuration class processing into <context:component-scan/> and <context:annotation-config/> through AnnotationConfigUtils#registerAnnotationConfigProcessors 2009-03-26 19:52:50 +00:00
Chris Beams 77b2c4e199 SPR-5615 - Improved error message: s/is no interface/is not an interface 2009-03-26 13:56:14 +00:00
Juergen Hoeller 40b06b5f19 fixed broken "setManagedInterfaces" interface assertion (SPR-5615) 2009-03-26 13:49:21 +00:00
Mark Pollack 0152d8d21d SPR-5385, SPR-5301 - initial pass completed of POMs for maven central repository upload. N.B. Can not build spring with these POMs.
Cleanup remains to meet maven central metadata requirements
2009-03-25 08:06:34 +00:00
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. 2009-03-25 06:01:17 +00:00
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)
2009-03-25 03:14:35 +00:00
Mark Pollack 0b463c0838 SPR-5385, SPR-5301 - partial work committed. 2009-03-24 05:56:56 +00:00
Juergen Hoeller 6ca253e3e6 RmiServiceExporter and RmiRegistryFactoryBean synchronize registry lookup/creation 2009-03-24 00:05:21 +00:00
Juergen Hoeller dab23a71f9 polishing 2009-03-23 14:39:25 +00:00
Juergen Hoeller df99929e21 added TaskScheduler interface and Trigger abstraction; added ConcurrentTaskScheduler and ThreadPoolTaskScheduler; added CommonJ TimerManagerTaskScheduler; added CronTrigger implementation for cron expression support 2009-03-23 14:38:55 +00:00
Juergen Hoeller 26f0671250 TimerTaskExecutor creates non-daemon Timer and uses bean name as default Timer name 2009-03-23 14:35:16 +00:00
Juergen Hoeller d42e24a752 polishing 2009-03-23 14:15:47 +00:00
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
2009-03-23 14:13:41 +00:00
Chris Beams 147709fa9e Tweaks to package-info.java files 2009-03-23 07:36:44 +00:00
Chris Beams 22b25e0d7b Consolidated Util and MutableAnnotationUtils classes into existing AsmUtils 2009-03-23 07:01:01 +00:00
Chris Beams 7f96f57375 polishing 2009-03-23 06:23:01 +00:00
Chris Beams 1284bd585f + JavaDoc updates
+ added objectweb.asm back to .classpath to satisfy transitive need from groovy tests
+ package.html -> package-info.java
2009-03-23 05:28:58 +00:00
Chris Beams cd50e45645 + Moving .config.java module -> .context 2009-03-23 04:48:04 +00:00
Chris Beams 3ae3de19a9 + Updated all projects to use the re-introduced org.springframework.asm instead of org.objectweb.asm (.java, template.mf, ivy.xml, and .classpath files have been updated)
+ Finished support for @Import, including detection of circular imports
2009-03-21 19:00:57 +00:00
Mark Pollack 13dfa11def Add support for @ScopedProxy for factory beans using the @FactoryBean annotation within a @Component
Add missing unit tests
2009-03-13 18:14:40 +00:00
Mark Pollack fc9c3009fe Initial cut of feature to create factory beans using the @FactoryBean annotation within a @Component 2009-03-07 07:42:25 +00:00
Chris Beams faffd98621 Javadoc polish & pruning dead code 2009-03-07 05:49:12 +00:00
Chris Beams 3231f458c8 + Added 'proxyMode' attribute to @Scope annotation
+ Eliminated @ScopedProxy in favor of @Scope(proxyMode=NO|INTERFACES|TARGET_CLASS)
2009-03-07 04:54:31 +00:00