Completed Architectural Setup
This commit is contained in:
+1
-1
@@ -6,6 +6,6 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
class DefinitionManager {
|
||||
public class DefinitionManager {
|
||||
final private DefinitionDao definitionDao;
|
||||
}
|
||||
|
||||
-1
@@ -5,7 +5,6 @@ import org.springframework.context.annotation.Configuration;
|
||||
|
||||
@Configuration
|
||||
@ComponentScan
|
||||
//@PropertySource("classpath:development.properties")
|
||||
public class ManagerConfig {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
class NotationManager {
|
||||
public class NotationManager {
|
||||
final private NotationDao notationDao;
|
||||
}
|
||||
|
||||
+3
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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')
|
||||
}
|
||||
|
||||
+18
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,6 +8,6 @@ public class HelloController {
|
||||
|
||||
@RequestMapping("/")
|
||||
public String index() {
|
||||
return "Greetings from Spring Boot!";
|
||||
return "Welcome to Project Pandamonium!";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user