diff options
author | Jakub Dudycz <jakub.dudycz@nokia.com> | 2018-02-16 15:32:28 +0100 |
---|---|---|
committer | Patrick Brady <pb071s@att.com> | 2018-02-18 21:19:27 +0000 |
commit | fedb6084653b910d3d582f94dd070d0828322913 (patch) | |
tree | 325a8fe01b268cb5d10db6fff3db9aed07bc7f14 /appc-dg/appc-dg-shared/appc-dg-common | |
parent | cfc8a7b22d30696a227a410aaf17ac3110d6b59d (diff) |
Added @FunctionalInterface annotation where needed
Change-Id: Ica7171f6314f10ff51979c2bdd07e293ded695e4
Issue-ID: APPC-644
Signed-off-by: Jakub Dudycz <jakub.dudycz@nokia.com>
Diffstat (limited to 'appc-dg/appc-dg-shared/appc-dg-common')
6 files changed, 6 insertions, 2 deletions
diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/DgResolverPlugin.java b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/DgResolverPlugin.java index b0ee4a5c9..397e3de3d 100644 --- a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/DgResolverPlugin.java +++ b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/DgResolverPlugin.java @@ -30,6 +30,7 @@ import org.onap.ccsdk.sli.core.sli.SvcLogicJavaPlugin; import java.util.Map; +@FunctionalInterface public interface DgResolverPlugin extends SvcLogicJavaPlugin { void resolveDg(Map<String, String> params, SvcLogicContext ctx) throws APPCException; } diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/IntermediateMessageSender.java b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/IntermediateMessageSender.java index 3e03c2ff7..dcb516453 100644 --- a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/IntermediateMessageSender.java +++ b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/IntermediateMessageSender.java @@ -32,6 +32,7 @@ import java.util.Map; /** * This interface provides api for sending intermediate messages from DG to initiator */ +@FunctionalInterface public interface IntermediateMessageSender extends SvcLogicJavaPlugin{ /** diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/OutputMessagePlugin.java b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/OutputMessagePlugin.java index 935aa877d..f0ba0c57e 100644 --- a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/OutputMessagePlugin.java +++ b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/OutputMessagePlugin.java @@ -31,8 +31,8 @@ import java.util.Map; import org.onap.appc.exceptions.APPCException; +@FunctionalInterface public interface OutputMessagePlugin extends SvcLogicJavaPlugin { void outputMessageBuilder(Map<String, String> params, SvcLogicContext ctx) throws APPCException; - } diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VNFCDgResolverPlugin.java b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VNFCDgResolverPlugin.java index 06036c225..6352fccf1 100644 --- a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VNFCDgResolverPlugin.java +++ b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VNFCDgResolverPlugin.java @@ -31,7 +31,7 @@ import java.util.Map; import org.onap.appc.exceptions.APPCException; - +@FunctionalInterface public interface VNFCDgResolverPlugin extends SvcLogicJavaPlugin { void resolveVNFCDg(Map<String, String> params, SvcLogicContext ctx) throws APPCException; } diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VNFConfigurator.java b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VNFConfigurator.java index 4ce0a9150..65e2324f8 100644 --- a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VNFConfigurator.java +++ b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VNFConfigurator.java @@ -32,6 +32,7 @@ import java.util.Map; /** * DG plugin created for VNF configuration operation to store data in MD-SAL store **/ +@FunctionalInterface public interface VNFConfigurator extends SvcLogicJavaPlugin{ /** * it is invoked from the DG, and it performs following operations diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VnfExecutionFlow.java b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VnfExecutionFlow.java index b25eaf10f..8c28e4412 100644 --- a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VnfExecutionFlow.java +++ b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/VnfExecutionFlow.java @@ -29,6 +29,7 @@ import org.onap.ccsdk.sli.core.sli.SvcLogicJavaPlugin; import java.util.Map; +@FunctionalInterface public interface VnfExecutionFlow extends SvcLogicJavaPlugin { void getVnfExecutionFlowData(Map<String,String> params, SvcLogicContext context); } |