WSO2 – 如何正确地将一个 Java 类包含在项目中的方式是什么。

huangapple go评论70阅读模式
英文:

WSO2 - What is the right way to include a java class as part of the project

问题

我想将一个POJO添加到我的WSO2项目中,该POJO是我作为规则中介器输入传递的事实的Java类型。目前我已经将该类添加到一个自定义中介器项目中。但是,正确的做法是什么?

我正在使用Integration Studio 7.1.0。

英文:

I want to add a POJO to my WSO2 project which is the java type of a fact that I am passing as input to the Rule Mediator. At the moment I have the class added to a custom mediator project. But what is the correct way to do this?

I'm using integration studio 7.1.0.

答案1

得分: 1

你可以使用类中介者将POJO注入到您的序列中。请注意,您需要扩展AbstractMediator类才能实现此操作。有关更多信息,请参阅此类中介者的文档。

英文:

You can use a class mediator to inject the POJO into your sequence. Note that you'll have to extend the AbstractMediator class in order to do this. Refer to this documentation on class mediator for more information.

huangapple
  • 本文由 发表于 2020年9月30日 13:00:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/64131185.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定