org.joinedworkz.spring.boot.SpringBootSetting Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot Show documentation
Show all versions of spring-boot Show documentation
DSL based modeling framework - facilities SpringBoot
package org.joinedworkz.spring.boot;
import org.joinedworkz.common.CommonSetting;
import org.joinedworkz.common.java.DtoCartridge;
import org.joinedworkz.common.java.JavaTypeStrategy;
import org.joinedworkz.common.java.generator.ClassGeneratorHelper;
import org.joinedworkz.common.java.generator.DtoClassGenerator;
import org.joinedworkz.common.strategies.DtoFieldNameStrategy;
import org.joinedworkz.common.strategies.TableNameStrategy;
import org.joinedworkz.spring.boot.generator.SpringBootDtoClassGenerator;
import org.joinedworkz.spring.boot.helper.SpringBootClassGeneratorHelper;
import org.joinedworkz.spring.boot.strategies.SpringBootDtoFieldNameStrategy;
import org.joinedworkz.spring.boot.strategies.SpringBootJavaTypeStrategy;
import org.joinedworkz.spring.boot.strategies.SpringBootTableNameStrategy;
public class SpringBootSetting extends CommonSetting {
public SpringBootSetting(ClassLoader projectClassLoader) {
super(projectClassLoader);
}
public void configure() {
super.configure();
bind(DtoCartridge.class).to(SpringBootDtoCartridge.class);
bind(JavaTypeStrategy.class).to(SpringBootJavaTypeStrategy.class);
bind(DtoClassGenerator.class).to(SpringBootDtoClassGenerator.class);
bind(DtoFieldNameStrategy.class).to(SpringBootDtoFieldNameStrategy.class);
bind(ClassGeneratorHelper.class).to(SpringBootClassGeneratorHelper.class);
bind(TableNameStrategy.class).to(SpringBootTableNameStrategy.class);
}
}