Skip to content

Commit

Permalink
CORE-16382 Facade Service Takes FacadeId as Parameter not String (#1294)
Browse files Browse the repository at this point in the history
# Changes
- Bump API version to 23
- Update `getProxy` method to accept FacadeId rather than String
  • Loading branch information
ac101m authored Oct 23, 2023
1 parent af98814 commit fd1d20c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package net.corda.v5.application.interop;

import net.corda.v5.application.interop.facade.Facade;
import net.corda.v5.application.interop.facade.FacadeId;
import net.corda.v5.application.interop.facade.FacadeRequest;
import net.corda.v5.application.interop.facade.FacadeResponse;
import net.corda.v5.base.annotations.Suspendable;
import org.jetbrains.annotations.NotNull;

/**
* Service to perform Corda to Corda interoperability calls using Facades.
Expand All @@ -21,7 +23,7 @@ public interface FacadeService {
* instance invokes a Facade method on a peer Identity denoted by an <code>alias</code> from an <code>interopGroup</code>.
*/
@Suspendable
<T> T getProxy(String facadeId, Class<T> expectedType, InterOpIdentityInfo interopIdentity);
<T> T getProxy(@NotNull FacadeId facadeId, Class<T> expectedType, InterOpIdentityInfo interopIdentity);

/**
* Interprets a Facade request and invokes a matching method on the target class.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cordaProductVersion = 5.1.0-INTEROP
## IMPORTANT:
## The interop feature branches track api revisions separately to the mainline branch.
## API version of last merge from corda mainline: 32
cordaApiRevision = 22
cordaApiRevision = 23

# Main
kotlinVersion = 1.8.21
Expand Down

0 comments on commit fd1d20c

Please sign in to comment.