英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论