Skip to content

Commit

Permalink
CoreComponent is sealed
Browse files Browse the repository at this point in the history
  • Loading branch information
phlppchrtn committed Jun 2, 2024
1 parent 0defbdf commit e89f483
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
* The amplifier tanslates the particular request (defined in a anotation) in a java code.
* @author pchretien
*/
public interface Amplifier extends CoreComponent {
public non-sealed interface Amplifier extends CoreComponent {
//
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
*
* @author pchretien
*/
public interface Component extends CoreComponent {
public non-sealed interface Component extends CoreComponent {
//
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* @author mlaroche
*/
public interface Connector<C> extends CoreComponent {
public non-sealed interface Connector<C> extends CoreComponent {

String DEFAULT_CONNECTOR_NAME = "main";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,5 @@
*
* @author pchretien
*/
public interface CoreComponent {
//
public sealed interface CoreComponent permits Component, Plugin, Connector, Amplifier {
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
*
* @author pchretien
*/
public interface Plugin extends CoreComponent {
public non-sealed interface Plugin extends CoreComponent {
//
}

0 comments on commit e89f483

Please sign in to comment.