Formatting
This commit is contained in:
parent
d3074a086c
commit
a9afe0a944
|
|
@ -80,8 +80,8 @@ public class OpenTsdbGaugeWriter implements GaugeWriter {
|
||||||
private OpenTsdbNamingStrategy namingStrategy = new DefaultOpenTsdbNamingStrategy();
|
private OpenTsdbNamingStrategy namingStrategy = new DefaultOpenTsdbNamingStrategy();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new {@code OpenTsdbGaugeWriter} with the default connect (10 seconds)
|
* Creates a new {@code OpenTsdbGaugeWriter} with the default connect (10 seconds) and
|
||||||
* and read (30 seconds) timeouts.
|
* read (30 seconds) timeouts.
|
||||||
*/
|
*/
|
||||||
public OpenTsdbGaugeWriter() {
|
public OpenTsdbGaugeWriter() {
|
||||||
this(DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT);
|
this(DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT);
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,8 @@ public final class RabbitListenerContainerFactoryConfigurer {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new and pre-configured {@link SimpleRabbitListenerContainerFactory} instance
|
* Create a new and pre-configured {@link SimpleRabbitListenerContainerFactory}
|
||||||
* for the specified {@link ConnectionFactory}.
|
* instance for the specified {@link ConnectionFactory}.
|
||||||
* @param connectionFactory the {@link ConnectionFactory} to use.
|
* @param connectionFactory the {@link ConnectionFactory} to use.
|
||||||
* @return a pre-configured {@link SimpleRabbitListenerContainerFactory}
|
* @return a pre-configured {@link SimpleRabbitListenerContainerFactory}
|
||||||
*/
|
*/
|
||||||
|
|
@ -57,7 +57,8 @@ public final class RabbitListenerContainerFactoryConfigurer {
|
||||||
/**
|
/**
|
||||||
* Apply the default settings for the specified jms listener container factory. The
|
* Apply the default settings for the specified jms listener container factory. The
|
||||||
* factory can be further tuned and default settings can be overridden.
|
* factory can be further tuned and default settings can be overridden.
|
||||||
* @param factory the {@link SimpleRabbitListenerContainerFactory} instance to configure
|
* @param factory the {@link SimpleRabbitListenerContainerFactory} instance to
|
||||||
|
* configure
|
||||||
* @param connectionFactory the {@link ConnectionFactory} to use
|
* @param connectionFactory the {@link ConnectionFactory} to use
|
||||||
*/
|
*/
|
||||||
public void configure(SimpleRabbitListenerContainerFactory factory,
|
public void configure(SimpleRabbitListenerContainerFactory factory,
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,8 @@ import org.springframework.util.StringUtils;
|
||||||
public class JobLauncherCommandLineRunner
|
public class JobLauncherCommandLineRunner
|
||||||
implements CommandLineRunner, ApplicationEventPublisherAware {
|
implements CommandLineRunner, ApplicationEventPublisherAware {
|
||||||
|
|
||||||
private static final Log logger = LogFactory.getLog(JobLauncherCommandLineRunner.class);
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(JobLauncherCommandLineRunner.class);
|
||||||
|
|
||||||
private JobParametersConverter converter = new DefaultJobParametersConverter();
|
private JobParametersConverter converter = new DefaultJobParametersConverter();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,8 @@ public class ElasticsearchAutoConfiguration implements DisposableBean {
|
||||||
DEFAULTS = Collections.unmodifiableMap(defaults);
|
DEFAULTS = Collections.unmodifiableMap(defaults);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Log logger = LogFactory.getLog(ElasticsearchAutoConfiguration.class);
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(ElasticsearchAutoConfiguration.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ElasticsearchProperties properties;
|
private ElasticsearchProperties properties;
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,8 @@ import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType;
|
||||||
@Import({ Registrar.class, DataSourcePoolMetadataProvidersConfiguration.class })
|
@Import({ Registrar.class, DataSourcePoolMetadataProvidersConfiguration.class })
|
||||||
public class DataSourceAutoConfiguration {
|
public class DataSourceAutoConfiguration {
|
||||||
|
|
||||||
private static final Log logger = LogFactory.getLog(DataSourceAutoConfiguration.class);
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(DataSourceAutoConfiguration.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines if the {@code dataSource} being used by Spring was created from
|
* Determines if the {@code dataSource} being used by Spring was created from
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,8 @@ class JmsAnnotationDrivenConfiguration {
|
||||||
@Bean
|
@Bean
|
||||||
@ConditionalOnMissingBean(name = "jmsListenerContainerFactory")
|
@ConditionalOnMissingBean(name = "jmsListenerContainerFactory")
|
||||||
public DefaultJmsListenerContainerFactory jmsListenerContainerFactory(
|
public DefaultJmsListenerContainerFactory jmsListenerContainerFactory(
|
||||||
JmsListenerContainerFactoryConfigurer configurer, ConnectionFactory connectionFactory) {
|
JmsListenerContainerFactoryConfigurer configurer,
|
||||||
|
ConnectionFactory connectionFactory) {
|
||||||
return configurer.createJmsListenerContainerFactory(connectionFactory);
|
return configurer.createJmsListenerContainerFactory(connectionFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,8 @@ public final class JmsListenerContainerFactoryConfigurer {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the {@link JtaTransactionManager} to use or {@code null} if the JTA
|
* Set the {@link JtaTransactionManager} to use or {@code null} if the JTA support
|
||||||
* support should not be used.
|
* should not be used.
|
||||||
* @param transactionManager the {@link JtaTransactionManager}
|
* @param transactionManager the {@link JtaTransactionManager}
|
||||||
*/
|
*/
|
||||||
@Autowired(required = false)
|
@Autowired(required = false)
|
||||||
|
|
|
||||||
|
|
@ -214,8 +214,9 @@ public class JmsAutoConfigurationTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCustomContainerFactoryWithConfigurer() {
|
public void testCustomContainerFactoryWithConfigurer() {
|
||||||
this.context = doLoad(new Class<?>[]{TestConfiguration9.class,
|
this.context = doLoad(
|
||||||
EnableJmsConfiguration.class}, "spring.jms.listener.autoStartup=false");
|
new Class<?>[] { TestConfiguration9.class, EnableJmsConfiguration.class },
|
||||||
|
"spring.jms.listener.autoStartup=false");
|
||||||
assertTrue(this.context.containsBean("jmsListenerContainerFactory"));
|
assertTrue(this.context.containsBean("jmsListenerContainerFactory"));
|
||||||
JmsListenerContainerFactory<?> jmsListenerContainerFactory = this.context.getBean(
|
JmsListenerContainerFactory<?> jmsListenerContainerFactory = this.context.getBean(
|
||||||
"customListenerContainerFactory", JmsListenerContainerFactory.class);
|
"customListenerContainerFactory", JmsListenerContainerFactory.class);
|
||||||
|
|
@ -223,7 +224,8 @@ public class JmsAutoConfigurationTests {
|
||||||
jmsListenerContainerFactory.getClass());
|
jmsListenerContainerFactory.getClass());
|
||||||
DefaultMessageListenerContainer listenerContainer = ((DefaultJmsListenerContainerFactory) jmsListenerContainerFactory)
|
DefaultMessageListenerContainer listenerContainer = ((DefaultJmsListenerContainerFactory) jmsListenerContainerFactory)
|
||||||
.createListenerContainer(mock(JmsListenerEndpoint.class));
|
.createListenerContainer(mock(JmsListenerEndpoint.class));
|
||||||
assertEquals(DefaultMessageListenerContainer.CACHE_CONSUMER, listenerContainer.getCacheLevel());
|
assertEquals(DefaultMessageListenerContainer.CACHE_CONSUMER,
|
||||||
|
listenerContainer.getCacheLevel());
|
||||||
assertFalse(listenerContainer.isAutoStartup());
|
assertFalse(listenerContainer.isAutoStartup());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,8 @@ import org.springframework.core.Ordered;
|
||||||
public class FileEncodingApplicationListener
|
public class FileEncodingApplicationListener
|
||||||
implements ApplicationListener<ApplicationEnvironmentPreparedEvent>, Ordered {
|
implements ApplicationListener<ApplicationEnvironmentPreparedEvent>, Ordered {
|
||||||
|
|
||||||
private static final Log logger = LogFactory.getLog(FileEncodingApplicationListener.class);
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(FileEncodingApplicationListener.class);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getOrder() {
|
public int getOrder() {
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,8 @@ import org.springframework.util.ClassUtils;
|
||||||
public class ServletListenerRegistrationBean<T extends EventListener>
|
public class ServletListenerRegistrationBean<T extends EventListener>
|
||||||
extends RegistrationBean {
|
extends RegistrationBean {
|
||||||
|
|
||||||
private static final Log logger = LogFactory.getLog(ServletListenerRegistrationBean.class);
|
private static final Log logger = LogFactory
|
||||||
|
.getLog(ServletListenerRegistrationBean.class);
|
||||||
|
|
||||||
private static final Set<Class<?>> SUPPORTED_TYPES;
|
private static final Set<Class<?>> SUPPORTED_TYPES;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue