This repository has been archived on 2026-01-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ptp/pandamonium-theorem-prover/persistence/src/main/java/manager/ManagerConfig.java

37 lines
930 B
Java

package manager;
import dao.DefinitionDao;
import dao.NotationDao;
import dao.ProofDao;
import dao.TheoremDao;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
@Configuration
@ComponentScan
@PropertySource("classpath:development.properties")
public class ManagerConfig {
@Bean
public TheoremManager theoremManager() {
return new TheoremManager(new TheoremDao());
}
@Bean
public DefinitionManager definitionManager() {
return new DefinitionManager(new DefinitionDao());
}
@Bean
public ProofManager proofManager() {
return new ProofManager(new ProofDao());
}
@Bean
public NotationManager notationManager() {
return new NotationManager(new NotationDao());
}
}