Polish
This commit is contained in:
@@ -106,6 +106,7 @@ public class ManagementContextAutoConfiguration {
|
||||
});
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@EnableManagementContext(ManagementContextType.SAME)
|
||||
static class EnableSameManagementContextConfiguration {
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ class RabbitAnnotationDrivenConfiguration {
|
||||
return factory;
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@EnableRabbit
|
||||
@ConditionalOnMissingBean(name = RabbitListenerConfigUtils.RABBIT_LISTENER_ANNOTATION_PROCESSOR_BEAN_NAME)
|
||||
protected static class EnableRabbitConfiguration {
|
||||
|
||||
@@ -39,6 +39,7 @@ import org.springframework.transaction.PlatformTransactionManager;
|
||||
@Configuration
|
||||
class BatchConfigurerConfiguration {
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnMissingBean(name = "entityManagerFactory")
|
||||
static class JdbcBatchConfiguration {
|
||||
|
||||
@@ -52,6 +53,7 @@ class BatchConfigurerConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnClass(name = "javax.persistence.EntityManagerFactory")
|
||||
@ConditionalOnBean(name = "entityManagerFactory")
|
||||
static class JpaBatchConfiguration {
|
||||
|
||||
@@ -68,16 +68,16 @@ class GsonHttpMessageConvertersConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Conditional(JacksonAndJsonbUnavailable.class)
|
||||
@Conditional(JacksonAndJsonbUnavailableCondition.class)
|
||||
static class JacksonJsonbUnavailable {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static class JacksonAndJsonbUnavailable extends NoneNestedConditions {
|
||||
private static class JacksonAndJsonbUnavailableCondition extends NoneNestedConditions {
|
||||
|
||||
JacksonAndJsonbUnavailable() {
|
||||
JacksonAndJsonbUnavailableCondition() {
|
||||
super(ConfigurationPhase.REGISTER_BEAN);
|
||||
}
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@ public class JsonTestersAutoConfiguration {
|
||||
null);
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnClass(ObjectMapper.class)
|
||||
private static class JacksonJsonTestersConfiguration {
|
||||
|
||||
@@ -88,6 +89,7 @@ public class JsonTestersAutoConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnClass(Gson.class)
|
||||
private static class GsonJsonTestersConfiguration {
|
||||
|
||||
@@ -100,6 +102,7 @@ public class JsonTestersAutoConfiguration {
|
||||
|
||||
}
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnClass(Jsonb.class)
|
||||
private static class JsonbJsonTesterConfiguration {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user