- 21 3月, 2014 1 次提交
-
-
由 Stephane Nicoll 提交于
Prior to this commit, the codebase was using a mix of log4j.xml and log4j.properties for test-related logging configuration. This can be an issue as log4j takes the xml variant first when looking for a default bootstrap configuration. In practice, some modules declaring the properties variant were taking the xml variant configuration from another module. The general structure of the configuration has also been harmonized to provide a standard console output as well as an easy way to enable trace logs for the current module.
-
- 20 3月, 2014 6 次提交
-
-
由 Rossen Stoyanchev 提交于
The clientInboundChannel and clientOutboundChannel now use twice the number of available processors by default to accomodate for some degree of blocking in task execution on average. In practice these settings still need to be configured explicitly in applications but these should serve as better default values than the default values in ThreadPoolTaskExecutor. Issue: SPR-11450
-
由 Sam Brannen 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11239
-
由 Sam Brannen 提交于
Prior to this commit, Spring supported meta-annotation attribute overrides in custom composed annotations with reflection-based annotation processing but not with ASM-based annotation processing. This commit ensures that meta-annotation attribute overrides are supported in AnnotationMetadataReadingVisitor.getAnnotationAttributes(). Issue: SPR-11574
-
由 Rossen Stoyanchev 提交于
This change exposes the WebSocketSession attributes through a message header. The StompSubProtocolHandler adds this to incoming messages. For now messaging handling methods can access the map via @Header, e.g.: @Header(StompHeaderAccessor.SESSION_ATTRIBUTES) Map<String, Object> attrs) { Issue: SPR-11566
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11566
-
- 19 3月, 2014 9 次提交
-
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11580
-
由 Sam Brannen 提交于
This commit sets the DB_CLOSE_ON_EXIT flag to false for embedded H2 databases loaded using H2EmbeddedDatabaseConfigurer (i.e., via Spring's <jdbc:embedded-database /> XML namespace, EmbeddedDatabaseBuilder, EmbeddedDatabaseFactory, and EmbeddedDatabaseFactoryBean). Issue: SPR-11573
-
由 Sam Brannen 提交于
This commit improves the configurability of EmbeddedDatabaseBuilder by exposing the following new configuration methods. - setDataSourceFactory(DataSourceFactory) - addScripts(String...) - setScriptEncoding(String) - setSeparator(String) - setCommentPrefix(String) - setBlockCommentStartDelimiter(String) - setBlockCommentEndDelimiter(String) - continueOnError(boolean) - ignoreFailedDrops(boolean) If more fine grained control over the configuration of the embedded database is required, users are recommended to use EmbeddedDatabaseFactory with a ResourceDatabasePopulator and forego use of the builder. Issue: SPR-11410
-
由 Sam Brannen 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11570
-
由 Sam Brannen 提交于
Issue: SPR-11574
-
由 Sam Brannen 提交于
Prior to this commit, AnnotationAttributesReadingVisitor treated Class annotation attributes as Strings instead of Classes. As a result, look-ups for Class attributes in meta-annotations failed with an IllegalArgumentException. This commit fixes this issue by consistently treating Class attributes as Classes in AnnotationAttributesReadingVisitor. Issue: SPR-11557
-
- 18 3月, 2014 10 次提交
-
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
由 Rossen Stoyanchev 提交于
A temporary measure related to intermittent CI build server failures.
-
由 Sebastien Deleuze 提交于
In Tiles v3 integration, underscores in filenames are intended to identify the definition locale. This behavior is now documented in order to avoid unexpected results with filenames like tiles_definitions.xml. This commit also updates Tiles v2 references to Tiles v3 in the Spring reference documentation. Issue: SPR-11491
-
由 Sebastien Deleuze 提交于
This commit updates reference documentation in order to specify that ServletServerContainerFactoryBean is for server side use and WebSocketContainerFactoryBean for client side use. Issue: SPR-11565
-
由 Rossen Stoyanchev 提交于
Use a custom ConfigReader to enforce the use of SynchronousDispatcher and no other dispatchers otherwise created by default. Avoids the creation thread pools never to be used.
-
由 Juergen Hoeller 提交于
Issue: SPR-11567
-
由 Rossen Stoyanchev 提交于
Ignore DISCONNECT messages if already disconnected. This can occur if the client explicitly sends a DISCONNECT frame and then closes the socket quickly. The closing of the WebSocket sessions also sends a DISCONNECT upstream to ensure the broker is aware.
-
由 Rossen Stoyanchev 提交于
-
- 17 3月, 2014 9 次提交
-
-
由 Sam Brannen 提交于
In ScriptUtils and related classes, SQLExceptions are now caught and wrapped in ScriptExceptions wherever feasible. Affected "throws" declarations have also been revised as appropriate. Issue: SPR-11564
-
由 Juergen Hoeller 提交于
Extracted simple MethodInvokingBean as alternative to (and base class for) MethodInvokingFactoryBean Issue: SPR-11196
-
由 Juergen Hoeller 提交于
Includes javadoc revision covering all supported EntityManager types as of JPA 2.1. Issue: SPR-11451
-
由 Sam Brannen 提交于
This commit continues the work began in SPR-9531 as follows. - ScriptException now extends DataAccessException. - DatabasePopulator.populate() now explicitly throws ScriptException. - Introduced UncategorizedScriptException. - DatabasePopulatorUtils.execute() now throws an UncategorizedScriptException instead of a DataAccessResourceFailureException. Issue: SPR-11564
-
由 Rossen Stoyanchev 提交于
Even though Netty is a required dependency of reactor-tcp at present, there is no hard dependency in the spring-messaging Reactor-based implementation.
-
由 Rossen Stoyanchev 提交于
Configure explicitly use of SynchronousDispatcher instead of the one used otherwise by default (RingBufferDispatcher). As a result TCP optations are now scoped to Netty's threads. Remove Environment field. It is no longer required to shut it down since we're now using SynchronousDispatcher by default. Replace connection.in() with connection.consume() when composing connection handling. The former creates a Stream for further composing, e.g. via map(), filter() but all we need is to read a message. Provide additional constructor that aceepts a pre-configured Reactor TcpClient instance. Issue: SPR-11531
-
由 Rossen Stoyanchev 提交于
Add accessor for brokerAvailable in AbstractBrokerMessageHandler Ensure brokerAvailable is set even if eventPublisher is not Add tests BrokerMessageHandlerTests Turn off brokerAvailable when StompBrokerRelayMessageHandler stops Actually stop message handling when brokerAvailable=false Improve log messages Issue: SPR-11563
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
- 16 3月, 2014 1 次提交
-
-
由 Sam Brannen 提交于
Changes made in conjunction with SPR-9531, introduced a regression with regard to support for using a single newline character as the statement separator within SQL scripts. Investigation of the cause of this issue resulted in the discovery of another, similar issue: support for multiple newlines as a statement separator has been broken for years but has gone unnoticed until now. The reason that both of these issues have gone unnoticed is a result of the fact that the test suite only executes SQL script integration tests against HSQL DB, and HSQL does not care if two statements occur on the same line; whereas, the H2 database will throw an exception if multiple statements are included on the same line when executing an update. This commit addresses both of these issues and provides further enhancements to Spring's SQL script support as follows. - ScriptUtils now properly checks if the supplied script contains the custom statement separator or default separator before falling back to the 'fallback' separator (i.e., newline). - Introduced FALLBACK_STATEMENT_SEPARATOR constant in ScriptUtils. - ScriptUtils.readScript() no longer omits empty lines from the input file since a statement separator string may in fact be composed of multiple newline characters. - Introduced overloaded variants of splitSqlScript() and executeSqlScript() in ScriptUtils with smaller argument lists for common use cases. - Extracted AbstractDatabasePopulatorTests from DatabasePopulatorTests and introduced concrete HsqlDatabasePopulatorTests and H2DatabasePopulatorTests subclasses for testing against HSQL and H2. - Split ScriptUtilsTests into ScriptUtilsUnitTests and ScriptUtilsIntegrationTests for faster builds. Issue: SPR-11560
-
- 15 3月, 2014 4 次提交
-
-
由 Sam Brannen 提交于
Issue: SPR-11557
-
由 Juergen Hoeller 提交于
-
由 Sam Brannen 提交于
This commit introduces unit and integration tests that attempt to reproduce the issue claimed by the reporter in SPR-11557. However, the tests pass without any problems. Issue: SPR-11557
-
由 Sam Brannen 提交于
-