Completed Architectural Setup
This commit is contained in:
+1
-1
@@ -6,6 +6,6 @@ import org.springframework.stereotype.Component;
|
|||||||
|
|
||||||
@Component
|
@Component
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
class DefinitionManager {
|
public class DefinitionManager {
|
||||||
final private DefinitionDao definitionDao;
|
final private DefinitionDao definitionDao;
|
||||||
}
|
}
|
||||||
|
|||||||
-1
@@ -5,7 +5,6 @@ import org.springframework.context.annotation.Configuration;
|
|||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@ComponentScan
|
@ComponentScan
|
||||||
//@PropertySource("classpath:development.properties")
|
|
||||||
public class ManagerConfig {
|
public class ManagerConfig {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -6,6 +6,6 @@ import org.springframework.stereotype.Component;
|
|||||||
|
|
||||||
@Component
|
@Component
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
class NotationManager {
|
public class NotationManager {
|
||||||
final private NotationDao notationDao;
|
final private NotationDao notationDao;
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-5
@@ -1,13 +1,11 @@
|
|||||||
package edu.msudenver.tsp.persistence.manager;
|
package edu.msudenver.tsp.persistence.manager;
|
||||||
|
|
||||||
import edu.msudenver.tsp.persistence.dao.ProofDao;
|
import edu.msudenver.tsp.persistence.dao.ProofDao;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
class ProofManager {
|
@AllArgsConstructor
|
||||||
|
public class ProofManager {
|
||||||
final private ProofDao proofDao;
|
final private ProofDao proofDao;
|
||||||
|
|
||||||
ProofManager(final ProofDao proofDao) {
|
|
||||||
this.proofDao = proofDao;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -6,6 +6,6 @@ import org.springframework.stereotype.Component;
|
|||||||
|
|
||||||
@Component
|
@Component
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
class TheoremManager {
|
public class TheoremManager {
|
||||||
final private TheoremDao theoremDao;
|
final private TheoremDao theoremDao;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
compile project(':persistence')
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||||
compile fileTree(dir: 'lib', include: '**/*.jar')
|
compile fileTree(dir: 'lib', include: '**/*.jar')
|
||||||
}
|
}
|
||||||
|
|||||||
+18
@@ -1,8 +1,26 @@
|
|||||||
package edu.msudenver.tsp.services.parser;
|
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;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
class ParserService {
|
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("/")
|
@RequestMapping("/")
|
||||||
public String index() {
|
public String index() {
|
||||||
return "Greetings from Spring Boot!";
|
return "Welcome to Project Pandamonium!";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user