Java interface static method workaround?

后端 未结 4 1409
我寻月下人不归
我寻月下人不归 2021-01-20 17:09

We have a given REST interface:

POST /calculation
abc

This calculation can be implemented by different logical \"c

4条回答
  •  醉话见心
    2021-01-20 17:56

    It seems to me that you want an interface with the methods declared as normal, and an implementing class, and then simply instantiate a single instance of this. There's no reason per se for the methods themselves to be static.

提交回复
热议问题