You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2020/07/31 06:21:00 UTC

[jira] [Resolved] (SCB-2045) support add service interface to tell which methods can publish as service

     [ https://issues.apache.org/jira/browse/SCB-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

liubao resolved SCB-2045.
-------------------------
    Resolution: Fixed

> support add service interface to tell which methods can publish as service
> --------------------------------------------------------------------------
>
>                 Key: SCB-2045
>                 URL: https://issues.apache.org/jira/browse/SCB-2045
>             Project: Apache ServiceComb
>          Issue Type: New Feature
>          Components: Java-Chassis
>            Reporter: liubao
>            Assignee: liubao
>            Priority: Major
>             Fix For: java-chassis-2.1.1
>
>
> e.g. In POJO mode
>  
> @RpcSchema(schemaId="Service")
> public class Service implements IService {
>    void method1();
>    void method2();
> }
>  
> public interface IService  {
>   void method1();
> }
>  
> we can add a constaint to tell only method1 is published as RPC service by doing:
>  
> @RpcSchema(schemaId="Service", schemaInterface=IService.class)
> public class Service implements IService {
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)