Skip to content

Commit

Permalink
feat(stomp): update SpringwolfStompConfigProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed Jun 10, 2024
1 parent 8b62316 commit a6464fb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

import java.lang.reflect.Method;

/**
* Allows for customization of the Operation object after it has been finalized by the scanner.
*/
public interface OperationCustomizer {
void customize(Operation operation, Method method);
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
@Setter
public class SpringwolfStompConfigProperties {

@Nullable
private Endpoint endpoint = new Endpoint();

@Nullable
private Publishing publishing;

@Nullable
private Scanner scanner;

Expand All @@ -32,21 +28,13 @@ public static class Endpoint {
private String user = "";
}

@Getter
@Setter
public static class Publishing {

/**
* Enables/Disables the possibility to publish messages through springwolf on the configured stomp instance.
*/
private boolean enabled = false;
}

@Getter
@Setter
public static class Scanner {

private static StompMessageMapping stompMessageMapping;
private static StompSendTo stompSendTo;
private static StompSendToUser stompSendToUser;

@Getter
@Setter
Expand All @@ -57,5 +45,25 @@ public static class StompMessageMapping {
*/
private boolean enabled = true;
}

@Getter
@Setter
public static class StompSendTo {

/**
* This mirrors the ConfigConstant {@see SpringwolfStompConfigConstants#SPRINGWOLF_SCANNER_STOMP_SEND_TO_ENABLED}
*/
private boolean enabled = true;
}

@Getter
@Setter
public static class StompSendToUser {

/**
* This mirrors the ConfigConstant {@see SpringwolfStompConfigConstants#SPRINGWOLF_SCANNER_STOMP_SEND_TO_USER_ENABLED}
*/
private boolean enabled = true;
}
}
}

0 comments on commit a6464fb

Please sign in to comment.