Merge pull request #8125 from eugenp/revert-8119-BAEL-3275-2

Revert "BAEL-3275: Using blocking queue for pub-sub"
This commit is contained in:
Eric Martin
2019-10-31 20:43:47 -05:00
committed by GitHub
parent db85c8f275
commit 3225470df5
20543 changed files with 1642750 additions and 0 deletions
@@ -0,0 +1,11 @@
package com.baeldung.config;
import org.springframework.roo.addon.layers.repository.jpa.annotations.RooJpaRepositoryConfiguration;
/**
* = SpringDataJpaDetachableRepositoryConfiguration
TODO Auto-generated class documentation
*
*/
@RooJpaRepositoryConfiguration
public class SpringDataJpaDetachableRepositoryConfiguration {
}
@@ -0,0 +1,18 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package com.baeldung.config;
import com.baeldung.RooApplication;
import com.baeldung.config.SpringDataJpaDetachableRepositoryConfiguration;
import io.springlets.data.jpa.repository.support.DetachableJpaRepositoryImpl;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
privileged aspect SpringDataJpaDetachableRepositoryConfiguration_Roo_Jpa_Repository_Configuration {
declare @type: SpringDataJpaDetachableRepositoryConfiguration: @Configuration;
declare @type: SpringDataJpaDetachableRepositoryConfiguration: @EnableJpaRepositories(repositoryBaseClass = DetachableJpaRepositoryImpl.class, basePackageClasses = RooApplication.class);
}
@@ -0,0 +1,13 @@
package com.baeldung.config;
import org.springframework.roo.addon.web.mvc.controller.annotations.config.RooWebMvcConfiguration;
import org.springframework.roo.addon.web.mvc.thymeleaf.annotations.RooWebMvcThymeleafUIConfiguration;
/**
* = WebMvcConfiguration
TODO Auto-generated class documentation
*
*/
@RooWebMvcConfiguration(defaultLanguage = "en")
@RooWebMvcThymeleafUIConfiguration
public class WebMvcConfiguration {
}
@@ -0,0 +1,110 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package com.baeldung.config;
import com.baeldung.config.WebMvcConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafProperties;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Bean;
import org.thymeleaf.TemplateEngine;
import org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver;
import org.thymeleaf.spring4.view.ThymeleafViewResolver;
import org.thymeleaf.templatemode.TemplateMode;
privileged aspect WebMvcConfiguration_Roo_ThymeleafUIConfiguration {
declare parents: WebMvcConfiguration implements ApplicationContextAware;
/**
* TODO Auto-generated attribute documentation
*
*/
@Autowired
private ThymeleafProperties WebMvcConfiguration.thymeleafProperties;
/**
* TODO Auto-generated attribute documentation
*
*/
@Autowired
private TemplateEngine WebMvcConfiguration.templateEngine;
/**
* TODO Auto-generated attribute documentation
*
*/
private ApplicationContext WebMvcConfiguration.applicationContext;
/**
* TODO Auto-generated method documentation
*
* @return ThymeleafProperties
*/
public ThymeleafProperties WebMvcConfiguration.getThymeleafProperties() {
return thymeleafProperties;
}
/**
* TODO Auto-generated method documentation
*
* @return TemplateEngine
*/
public TemplateEngine WebMvcConfiguration.getTemplateEngine() {
return templateEngine;
}
/**
* TODO Auto-generated method documentation
*
* @return ApplicationContext
*/
public ApplicationContext WebMvcConfiguration.getApplicationContext() {
return applicationContext;
}
/**
* TODO Auto-generated method documentation
*
* @param applicationContext
*/
public void WebMvcConfiguration.setApplicationContext(ApplicationContext applicationContext) {
this.applicationContext = applicationContext;
}
/**
* TODO Auto-generated method documentation
*
* @return ThymeleafViewResolver
*/
@Bean
public ThymeleafViewResolver WebMvcConfiguration.javascriptThymeleafViewResolver() {
ThymeleafViewResolver resolver = new ThymeleafViewResolver();
resolver.setTemplateEngine(getTemplateEngine());
resolver.setCharacterEncoding("UTF-8");
resolver.setContentType("application/javascript");
resolver.setViewNames(new String[] {"*.js"});
resolver.setCache(getThymeleafProperties().isCache());
return resolver;
}
/**
* TODO Auto-generated method documentation
*
* @return SpringResourceTemplateResolver
*/
@Bean
public SpringResourceTemplateResolver WebMvcConfiguration.javascriptTemplateResolver() {
SpringResourceTemplateResolver resolver = new SpringResourceTemplateResolver();
resolver.setApplicationContext(getApplicationContext());
resolver.setPrefix("classpath:/templates/fragments/js/");
resolver.setTemplateMode(TemplateMode.JAVASCRIPT);
resolver.setCharacterEncoding("UTF-8");
resolver.setCheckExistence(true);
resolver.setCacheable(getThymeleafProperties().isCache());
return resolver;
}
}
@@ -0,0 +1,72 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package com.baeldung.config;
import com.baeldung.config.WebMvcConfiguration;
import io.tracee.binding.springmvc.TraceeInterceptor;
import java.lang.Override;
import java.util.Locale;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
import org.springframework.web.servlet.i18n.SessionLocaleResolver;
privileged aspect WebMvcConfiguration_Roo_WebMvcConfiguration {
declare parents: WebMvcConfiguration extends WebMvcConfigurerAdapter;
declare @type: WebMvcConfiguration: @Configuration;
/**
* TODO Auto-generated method documentation
*
* @return LocalValidatorFactoryBean
*/
@Primary
@Bean
public LocalValidatorFactoryBean WebMvcConfiguration.validator() {
return new LocalValidatorFactoryBean();
}
/**
* TODO Auto-generated method documentation
*
* @return LocaleResolver
*/
@Bean
public LocaleResolver WebMvcConfiguration.localeResolver() {
SessionLocaleResolver localeResolver = new SessionLocaleResolver();
localeResolver.setDefaultLocale(new Locale("en"));
return localeResolver;
}
/**
* TODO Auto-generated method documentation
*
* @return LocaleChangeInterceptor
*/
@Bean
public LocaleChangeInterceptor WebMvcConfiguration.localeChangeInterceptor() {
LocaleChangeInterceptor localeChangeInterceptor = new LocaleChangeInterceptor();
localeChangeInterceptor.setParamName("lang");
return localeChangeInterceptor;
}
/**
* TODO Auto-generated method documentation
*
* @param registry
*/
@Override
public void WebMvcConfiguration.addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(localeChangeInterceptor());
registry.addInterceptor(new TraceeInterceptor());
}
}
@@ -0,0 +1,11 @@
package com.baeldung.config.jackson;
import org.springframework.roo.addon.web.mvc.controller.annotations.config.RooDomainModelModule;
/**
* = DomainModelModule
TODO Auto-generated class documentation
*
*/
@RooDomainModelModule
public class DomainModelModule {
}
@@ -0,0 +1,28 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package com.baeldung.config.jackson;
import com.baeldung.config.jackson.DomainModelModule;
import com.baeldung.domain.Book;
import com.baeldung.web.BookJsonMixin;
import com.fasterxml.jackson.databind.module.SimpleModule;
import org.springframework.boot.jackson.JsonComponent;
privileged aspect DomainModelModule_Roo_DomainModelModule {
declare parents: DomainModelModule extends SimpleModule;
declare @type: DomainModelModule: @JsonComponent;
/**
* TODO Auto-generated constructor documentation
*
*/
public DomainModelModule.new() {
// Mixin registration
setMixInAnnotation(Book.class, BookJsonMixin.class);
}
}