net.yadaframework.components.YadaSetup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yadaweb Show documentation
Show all versions of yadaweb Show documentation
Some useful tasks for the Yada Framework
package net.yadaframework.components;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import jakarta.annotation.PostConstruct;
import net.yadaframework.core.YadaConfiguration;
import net.yadaframework.persistence.entity.YadaClause;
import net.yadaframework.persistence.repository.YadaClauseDao;
// Not a @Component
abstract public class YadaSetup {
private transient Logger log = LoggerFactory.getLogger(YadaSetup.class);
@Autowired private YadaConfiguration yadaConfiguration;
@Autowired private YadaClauseDao yadaClauseDao;
@PostConstruct
public void init() throws Exception {
log.info("Setup started");
setupApplication();
List