[bs-53] Fix class loading problem with Log in a Condition

pull/1/merge
Dave Syer 12 years ago
parent 71c0fdd22d
commit ceea71fc38

@ -50,9 +50,6 @@ import org.springframework.util.ClassUtils;
@ConditionalOnMissingBean(DataSource.class) @ConditionalOnMissingBean(DataSource.class)
public class EmbeddedDatabaseAutoConfiguration { public class EmbeddedDatabaseAutoConfiguration {
private static Log logger = LogFactory
.getLog(EmbeddedDatabaseAutoConfiguration.class);
private static final Map<EmbeddedDatabaseType, String> EMBEDDED_DATABASE_TYPE_CLASSES; private static final Map<EmbeddedDatabaseType, String> EMBEDDED_DATABASE_TYPE_CLASSES;
static { static {
EMBEDDED_DATABASE_TYPE_CLASSES = new LinkedHashMap<EmbeddedDatabaseType, String>(); EMBEDDED_DATABASE_TYPE_CLASSES = new LinkedHashMap<EmbeddedDatabaseType, String>();
@ -100,6 +97,8 @@ public class EmbeddedDatabaseAutoConfiguration {
static class EmbeddedDatabaseCondition implements Condition { static class EmbeddedDatabaseCondition implements Condition {
private static Log logger = LogFactory.getLog(EmbeddedDatabaseCondition.class);
@Override @Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) { public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
if (!ClassUtils.isPresent( if (!ClassUtils.isPresent(

Loading…
Cancel
Save