com.scalar.db.sql.springdata.ScalarDbRepositoryRegistrar Maven / Gradle / Ivy
package com.scalar.db.sql.springdata;
import java.lang.annotation.Annotation;
import javax.annotation.Nonnull;
import org.springframework.data.repository.config.RepositoryBeanDefinitionRegistrarSupport;
import org.springframework.data.repository.config.RepositoryConfigurationExtension;
/**
* {@link RepositoryBeanDefinitionRegistrarSupport} extending the repository registration for Scalar
* DB.
*/
public class ScalarDbRepositoryRegistrar extends RepositoryBeanDefinitionRegistrarSupport {
@Nonnull
@Override
protected Class extends Annotation> getAnnotation() {
return EnableScalarDbRepositories.class;
}
@Nonnull
@Override
protected RepositoryConfigurationExtension getExtension() {
return new ScalarDbRepositoryConfigurationExtension();
}
}