Completed Architectural Setup

This commit is contained in:
2019-02-03 21:42:03 -07:00
parent 6980708288
commit 77652722af
8 changed files with 26 additions and 10 deletions
@@ -6,6 +6,6 @@ import org.springframework.stereotype.Component;
@Component
@AllArgsConstructor
class DefinitionManager {
public class DefinitionManager {
final private DefinitionDao definitionDao;
}
@@ -5,7 +5,6 @@ import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan
//@PropertySource("classpath:development.properties")
public class ManagerConfig {
}
@@ -6,6 +6,6 @@ import org.springframework.stereotype.Component;
@Component
@AllArgsConstructor
class NotationManager {
public class NotationManager {
final private NotationDao notationDao;
}
@@ -1,13 +1,11 @@
package edu.msudenver.tsp.persistence.manager;
import edu.msudenver.tsp.persistence.dao.ProofDao;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;
@Component
class ProofManager {
@AllArgsConstructor
public class ProofManager {
final private ProofDao proofDao;
ProofManager(final ProofDao proofDao) {
this.proofDao = proofDao;
}
}
@@ -6,6 +6,6 @@ import org.springframework.stereotype.Component;
@Component
@AllArgsConstructor
class TheoremManager {
public class TheoremManager {
final private TheoremDao theoremDao;
}
@@ -12,6 +12,7 @@ repositories {
}
dependencies {
compile project(':persistence')
testCompile group: 'junit', name: 'junit', version: '4.12'
compile fileTree(dir: 'lib', include: '**/*.jar')
}
@@ -1,8 +1,26 @@
package edu.msudenver.tsp.services.parser;
import edu.msudenver.tsp.persistence.manager.DefinitionManager;
import edu.msudenver.tsp.persistence.manager.NotationManager;
import edu.msudenver.tsp.persistence.manager.ProofManager;
import edu.msudenver.tsp.persistence.manager.TheoremManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
class ParserService {
private final DefinitionManager definitionManager;
private final TheoremManager theoremManager;
private final NotationManager notationManager;
private final ProofManager proofManager;
@Autowired
public ParserService(final DefinitionManager definitionManager, final TheoremManager theoremManager,
final NotationManager notationManager, final ProofManager proofManager) {
this.definitionManager = definitionManager;
this.theoremManager = theoremManager;
this.notationManager = notationManager;
this.proofManager = proofManager;
}
}
@@ -8,6 +8,6 @@ public class HelloController {
@RequestMapping("/")
public String index() {
return "Greetings from Spring Boot!";
return "Welcome to Project Pandamonium!";
}
}