- 10 6月, 2014 3 次提交
-
-
由 Stephane Nicoll 提交于
Reorganized class structure to match our code style (setter for properties at the top of the class, public method before private implementation). Removed DisposableBean as it the lifecycle is already taking care of removing MBeans on stop. Cleaned test suite Issue: SPR-8045
-
由 Marten Deinum 提交于
Prior to this commit, MBeans were registered in a post construct call of MBeanExporter. This commit moves that logic after the initialization phase using the SmartLifecycle callback. Issue: SPR-8045
-
由 Rossen Stoyanchev 提交于
Issue: SPR-117711
-
- 09 6月, 2014 2 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Sebastien Deleuze 提交于
Enable JSONP support by wrapping the JSON output into a callback when a JSONP query parameter specifying the function name to use as callback is detected. Default query parameter names recognized as JSONP ones are "jsonp" and "callback". This list can be customized if needed. This commit also fixes JSONView support by removing the view name specified in the model from the output. Issue: SPR-8346
-
- 08 6月, 2014 2 次提交
-
-
由 Rossen Stoyanchev 提交于
Before this change @ModelAttribute methods were not invoked in any particular order other than ensuring global @ControllerAdvice methods are called first and local @Controller methods second. This change introduces a simple algorithm that selects the next @ModelAttribute method to invoke by making a pass over all methods and looking for one that has no dependencies (i.e. @ModelAttribute input arguments) or has all dependencies resolved (i.e. available in the model). The process is repeated until no more @ModelAttribute methods remain. If the next @ModelAttribute method cannot be determined because all remaining methods have unresolved dependencies, the first available method is picked anyway just as before, i.e. with required dependencies created through the default constructor. Examples in ModelFactoryOrderingTests. Issue: SPR-6299
-
由 Rossen Stoyanchev 提交于
-
- 07 6月, 2014 6 次提交
-
-
由 Sam Brannen 提交于
-
由 Juergen Hoeller 提交于
Reference documentation consistently refers to Apache HttpComponents instead of outdated Commons HttpClient Includes overhaul of remaining references to J2SE and J2EE, consistently replacing them with "the JDK" and "Java EE". Issue: SPR-11853
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11842
-
由 Juergen Hoeller 提交于
AbstractAutowireCapableBeanFactory's getTypeForFactoryBean considers FactoryBean<Object> declarations as non-indicative (just like raw declarations) Issue: SPR-11842
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11828
-
- 06 6月, 2014 12 次提交
-
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11764
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11766
-
由 Juergen Hoeller 提交于
Includes support for arbitrary deep nesting levels in DependencyDescriptor's getDependencyType() and MethodParameter's getNestedParameterType(). Issue: SPR-11833
-
由 Juergen Hoeller 提交于
Issue: SPR-11833
-
由 Juergen Hoeller 提交于
ConfigurationClassParser falls back to ASM-based resolution of member classes in case of NoClassDefFoundError Issue: SPR-11844
-
由 Stephane Nicoll 提交于
* patch01: Reference manual polishing
-
由 Vasyl Tretiakov 提交于
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
Introduce annotation to execute SQL scripts in the TCF
-
由 Sam Brannen 提交于
Prior to this commit, it was possible to execute SQL scripts programmatically via ResourceDatabasePopulator, JdbcTestUtils, and ScriptUtils. Furthermore, it was also possible to execute SQL scripts declaratively via the <jdbc> XML namespace. However, it was not possible to execute SQL scripts declaratively on a per test class or per test method basis. This commit makes it possible to declaratively configure SQL scripts for execution in integration tests via annotations that can be declared at the class or method level. Details follow. - Introduced a repeatable @DatabaseInitializer annotation that can be used to configure SQL scripts at the class or method level with method-level overrides. @DatabaseInitializers serves as a container for @DatabaseInitializer. - Introduced a new DatabaseInitializerTestExecutionListener that is responsible for parsing @DatabaseInitializer and @DatabaseInitializers and executing SQL scripts. - DatabaseInitializerTestExecutionListener is registered by default in abstract base test classes as well as in TestContextBootstrapper implementations. - @DatabaseInitializer and @DatabaseInitializers may be used as meta-annotations; however, attribute overrides are not currently supported for repeatable annotations used as meta-annotations. This is a known limitation of Spring's AnnotationUtils. - The semantics for locating SQL script resources is consistent with @ContextConfiguration's semantics for locating XML configuration files. In addition, a default SQL script can be detected based either on the name of the annotated class or on the name of the annotated test method. - @DatabaseInitializer allows for specifying which DataSource and PlatformTransactionManager to use from the test's ApplicationContext, including default conventions consistent with TransactionalTestExecutionListener and @TransactionConfiguration. - @DatabaseInitializer supports all of the script configuration options currently supported by ResourceDatabasePopulator. - @DatabaseInitializer and DatabaseInitializerTestExecutionListener support execution phases for scripts that dictate when SQL scripts are executed (i.e., before or after a test method). - SQL scripts can be executed within the current test's transaction if present, outside of the current test's transaction if present, or always in a new transaction, depending on the value of the boolean requireNewTransaction flag in @DatabaseInitializer. - DatabaseInitializerTestExecutionListener delegates to ResourceDatabasePopulator#execute to actually execute the scripts. Issue: SPR-7655
-
- 05 6月, 2014 7 次提交
-
-
由 Juergen Hoeller 提交于
Issue: SPR-11816
-
由 Juergen Hoeller 提交于
DefaultSubscriptionRegistry's removeSubscriptionInternal defensively handles non-existing destinations Issue: SPR-11832
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Moved @Uses annotations to org.springframework.lang; fixed Base64Utils to declare Java 8, and fixed PathResource's declaration to refer to Java 7. Issue: SPR-11604
-
由 Stephane Nicoll 提交于
* patch-1: Fix a typo
-
由 Alex Yursha 提交于
-
由 Stephane Nicoll 提交于
This commit introduces OrderProvider and OrderProviderComparator, two interfaces designed to externalize how a collection of element is sorted according to their order value. FactoryAwareOrderProvider is an OrderProvider implementation that knows about the objects to order and the corresponding BeanFactory instance. This allows to retrieve additional metadata about the actual instances to sort, such as its factory method. A @Bean method can now holds an additional @order to define the order value that this bean should have when injected as part of a collection or array. Issue: SPR-11310
-
- 04 6月, 2014 1 次提交
-
-
由 Juergen Hoeller 提交于
GsonBuilderUtils for programmatic Base64 serialization setup; common Base64Utils class adapts between Java 8 and Commons Codec Issue: SPR-9488
-
- 02 6月, 2014 2 次提交
-
-
由 Stephane Nicoll 提交于
This commit clarifies the role of the external transactionManager for a DMLC and the relationship with the sessionTransacted flag Issue: SPR-9200
-
由 Stephane Nicoll 提交于
This commit adds a invokeOperation protected method in case one needs a hook point in the way the underlying cache method is invoked, and how exceptions that might be thrown by that invocation are handled. Issue: SPR-11540
-
- 31 5月, 2014 5 次提交
-
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10859
-
由 Rossen Stoyanchev 提交于
Issue: SPR-10859
-
由 Juergen Hoeller 提交于
Issue: SPR-11808
-
由 Juergen Hoeller 提交于
Issue: SPR-11830
-
由 Juergen Hoeller 提交于
ClassMetadata exposes isAnnotation() now, and correctly returns false from hasSuperClass() for interfaces and annotations Issue: SPR-11711
-