Class MergeService
java.lang.Object
edu.university.ecs.lab.intermediate.merge.services.MergeService
This class is used for creating new IR's from old IR + Delta
and provides all functionality related to updating the old
IR
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Config
private final MicroserviceSystem
private final String
private final SystemChange
-
Constructor Summary
ConstructorDescriptionMergeService
(String intermediatePath, String deltaPath, String configPath, String outputPath) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method adds a JClass based on a Delta changeFilter's the delta files that deal with building project so either pom.xml or build.gradlevoid
generateMergeIR
(String newCommitID) This method generates the new IR from the old IR + Delta fileprivate String
void
removeFile
(Delta delta) This method removes a JClass based on a Delta change Note it might not be found, so it will handle this gracefullyprivate void
Method for updating MicroserviceSystem structure (microservices) based on pom.xml changes in Delta file
-
Field Details
-
config
-
microserviceSystem
-
systemChange
-
outputPath
-
-
Constructor Details
-
MergeService
-
-
Method Details
-
generateMergeIR
This method generates the new IR from the old IR + Delta file -
addFile
This method adds a JClass based on a Delta change- Parameters:
delta
- the delta change for adding
-
removeFile
This method removes a JClass based on a Delta change Note it might not be found, so it will handle this gracefully- Parameters:
delta
- the delta change for removal
-
updateMicroservices
private void updateMicroservices()Method for updating MicroserviceSystem structure (microservices) based on pom.xml changes in Delta file -
filterBuildDeltas
Filter's the delta files that deal with building project so either pom.xml or build.gradle- Returns:
- a list of system changes that deal with build files that aren't modifications
-
getMicroserviceNameFromPath
-