-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Configurable redesign * Remove code duplicates by introducing ChildClassConfigurable * Apply review comments
- Loading branch information
Showing
37 changed files
with
231 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...n/src/main/java/edu/kit/kastel/mcse/ardoco/core/configuration/ChildClassConfigurable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* Licensed under MIT 2023. */ | ||
package edu.kit.kastel.mcse.ardoco.core.configuration; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* This annotation marks a field that is configurable as configured by child class. That means that the key that is used to configure the field is based on the | ||
* actual class (not on the class where the configurable field is defined). | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Target(ElementType.FIELD) | ||
public @interface ChildClassConfigurable { | ||
} |
18 changes: 18 additions & 0 deletions
18
...k/common/src/main/java/edu/kit/kastel/mcse/ardoco/core/configuration/NoConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* Licensed under MIT 2023. */ | ||
package edu.kit.kastel.mcse.ardoco.core.configuration; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* This annotation is used to mark classes that should not be configured. This means that the fields of the class will not be modified. The cascade | ||
* configuration will be applied to the fields of the class. | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Target(ElementType.TYPE) | ||
public @interface NoConfiguration { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.