重构 Quartz 作业数据
我必须重构这样的类:
com.core 包中的 Class Person 引用了同一包中的 Class Address。我必须将 Address 移至新包 com.core.location。这在 java 方面很简单,但是,有一些quartz触发器有 com.core.Person 引用旧的 com.core.Address 类作为其作业数据映射的一部分。它可以在地图上的任何地方。
我尝试了几种方法,比如编写一个适配器,它的作用就像两个 java 程序之间的共同点,最终用新的类替换 ols 类。解决这个问题的最佳方法是什么?
谢谢, 克里斯.
I had to refactor a class like this:
Class Person in package com.core has a reference to Class Address which is in the same package. I had to move Address to a new package com.core.location. This was simple on the java side, however, there are some quartz triggers which have com.core.Person referencing the old com.core.Address class as part of their job data map. It could be anywhere in the Map.
I have tried a few approaches, like writing an adapter which acts like a common ground between 2 java programs that eventually replace the ols class with the new one. What would be the best way to resolve this?
Thanks,
Chris.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须更改 qrtz_job_details.job_class_name 列中的数据
You must change data in column qrtz_job_details.job_class_name