- 15 Sep, 2014 4 commits
-
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Previously, JTA auto-configuration would fail with a variety of ClassNotFoundExceptions and NoClassDefFoundErrors if it was used with an “incomplete” classpath. This commit adds a number of classes to @ConditionalOnClass annotations so that the auto-configuration backs off gracefully in the absence of certain classes. Specifically, the following now work as expected: - Deploying an app to a server with JTA available via JNDI when the app does not use transactions - Auto-configuration of Atomikos without JMS - Auto-configuration of Bitronix without JMS Both XADataSourceAutoConfiguration and JndiDataSourceAutoConfiguration have been updated to back off in the absence of spring-jdbc; a dependency of DataSourceProperties which is used by both classes. Error handling in AtomikosDependsOnBeanFactoryPostProcessor and BitronixDependentBeanFactoryPostProcessor has been enhanced so that the correct dependencies are established, even in the absence of JMS. Fixes gh-1538
-
Dave Syer authored
User can set those properties (optionally) to use a different DataSource than the default. Fixes gh-1558
-
Dave Syer authored
With this change I got a simple Eclipselink version of the data-jpa sample working. I'll push that when I get time to research it a bit more (I needed to set up a Java agent so either that might be a problem for our integration tests if we can't work around it). Fixes gh-1268. Cherry picked onto master after (apparently) a failed merge of commit ac2ab39a.
-
- 13 Sep, 2014 9 commits
-
-
Dave Syer authored
-
Dave Syer authored
-
Dave Syer authored
-
Dave Syer authored
When MVC path matchers are used as metric keys, they can still contain invalid characters and patterns (like asterisks). This change removes some more special characters and also tidies up the names a bit so no key part starts or ends with "-" (which is ugly). Fixes gh-1528
-
Dave Syer authored
Protecting /error doesn't make a great deal of sense and if it is protected you don't get the ErrorPageFilter for the attempt at loading it, so Tomcat renders its own HTML error page (when deployed as WAR). Fixes gh-1548
-
Dave Syer authored
When MVC path matchers are used as metric keys, they can still contain invalid characters and patterns (like asterisks). This change removes some more special characters and also tidies up the names a bit so no key part starts or ends with "-" (which is ugly). Fixes gh-1528
-
Dave Syer authored
-
Dave Syer authored
Fixes gh-1534
-
Dave Syer authored
There was too much state really in the old implementation of AuthenticationManagerConfiguration, and it was leading occasionally to null pointers when method A assumed that method B had already been called and it hadn't. This change manages to concentrate all the references to an AuthenticationManagerBuilder into a single method call, removoing the need for storing it at all. Fixes gh-1556
-
- 12 Sep, 2014 3 commits
-
-
Dave Syer authored
-
Vladimir Tsanev authored
Closes gh-1545
-
Stephane Nicoll authored
Fixes gh-1527
-
- 07 Sep, 2014 13 commits
-
-
Andy Wilkinson authored
-
Andy Wilkinson authored
The applicationDefaultJvmArgs property was added in Gradle 1.7. This commit updates RunPluginFeatures to access the property defensively so that the plugin can be used with Gradle 1.6. Fixes gh-1511
-
Andy Wilkinson authored
-
Andy Wilkinson authored
Closes gh-1503 Closes gh-1505
-
Josh Long authored
Fixes gh-1518 Closes gh-1519
-
Christoph Strobl authored
Spring Data Redis 1.4.0 introduced Redis Sentinel support. When specified, RedisConnectionFactory uses the Sentinel configuration to determine the current master. Sentinel configuration can be specified using two new properties: spring.redis.sentinel.master and spring.redis.sentinel.nodes. For example: spring.redis.sentinel.master=mymaster # name of redis server spring.redis.sentinel.nodes=127.0.0.1:26379,127.0.0.1:26380 Alternatively, a bean of type RedisSentinelConfiguration can be declared and it will be used to configure the connection factory. Note: At this time, Sentinel support is only available for Jedis Closes gh-1337
-
Andy Wilkinson authored
The missing bean condition on the auto-configuration classes for Elasticsearch, Jpa, Mongo and Solr repositories have been tightened to look for ElasticsearchRepositoryFactoryBean, JapRepositoryFactoryBean, MonoRepositoryFactoryBean, and SolrRepositoryFactoryBean respectively. In Spring Data Evans, when there are multiple repository types on the classpath, a strict mode is entered to prevent the different repositories from trampling over each other. A side-effect of this is that for the Mongo domain types in the tests to be discovered they must be explicitly annotated with @document. Closes gh-1338
-
Andy Wilkinson authored
-
John Tims authored
Closes gh-1524
-
Andy Wilkinson authored
-
Christoph Frick authored
Closes gh-1510
-
Christoph Frick authored
Closes gh-1510
-
David Liu authored
Closes gh-1292 Closes gh-1477
-
- 05 Sep, 2014 8 commits
-
-
Stephane Nicoll authored
This commit deprecates the proprietary EnableRabbitMessaging annotation in favour of the standard @EnableRabbit introduced as of Spring Rabbit 1.4. Fixes gh-1494
-
Stephane Nicoll authored
This commit adds two additional auto-configuration items that are new in Spring AMQP 1.4: * A RabbitMessagingTemplate is automatically created if none is present * A default RabbitListenerContainerFactory is automatically created if none is present. Besides @EnableRabbit is enabled automatically if the necessary classes are present and a ConnectionFactory is available. Fixes gh-1495
-
Andy Wilkinson authored
Closes gh-1493 Closes gh-1517
-
Dave Syer authored
-
Dave Syer authored
-
Dave Syer authored
-
Andy Wilkinson authored
Previously, InstallCommand used a custom Grape root and then walked the tree of files downloaded by Aether to determine which files it should install or uninstall. In some scenarios two files for the same module would be present: one named foo-1.0.0.BUILD-SNAPSHOT.jar and one named foo-1.0.0.BUILD-20140905.091809-2.jar. The former is from the local repository and the later is from a remote repository. In this case, the visitor would do the wrong thing and the latter would be installed into lib. This commit updates InstallCommand to determine the jars that it should process by consulting GroovyCompiler's classpath, rather than by walking Aether's cache. This approach selects the correct jar as Aether has already figured this out as part of resolving the dependency. It also brings InstallCommand into line with JarCommand. The previous implementation used Java 7-specific File APIs. As part of the above-described change this usage has been removed. The install command can now be used on Java 6. Fixes gh-1515
-
Phillip Webb authored
Fixes gh-1507
-
- 04 Sep, 2014 3 commits
-
-
Phillip Webb authored
-
Spring Buildmaster authored
-
Phillip Webb authored
Replace @ConditionalOnBean(MongoProperties.class) on MongoDataAutoConfiguration with @EnableConfigurationProperties since MongoAutoConfiguration will not be applied in a cloud environment. Fixes gh-1502
-