|
|
@ -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(
|
|
|
|