com.aol.micro.server.spring.JdbcPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-jdbc Show documentation
Show all versions of micro-jdbc Show documentation
Opinionated rest microservices
package com.aol.micro.server.spring;
import java.util.Optional;
import com.aol.micro.server.Plugin;
import com.aol.micro.server.spring.datasource.JdbcConfig;
import com.aol.micro.server.spring.datasource.jdbc.SQL;
import cyclops.collections.immutable.PersistentSetX;
/**
*
* Collections of Spring configuration classes (Classes annotated with @Configuration)
* that configure various useful pieces of functionality - such as property file loading,
* datasources, scheduling etc
*
* @author johnmcclean
*
*/
public class JdbcPlugin implements Plugin {
@Override
public Optional springDbConfigurer() {
return Optional.of(new SpringConfigurer());
}
@Override
public PersistentSetX springClasses() {
return PersistentSetX.of(JdbcConfig.class, SQL.class);
}
}