0

我已经编写了一个应该替换的 View Model Facet Factory

RecreatableObjectFacetFactory

我排除了 RecreatableObjectFacetFactory 并在 isis.properties 添加了我自己的工厂,但是当元模型验证时继续出现以下错误:

domainapp.modules.system.vm.impl.FileVM:具有多个不兼容的注释/接口,表明它是某种可重新创建的对象(SystemViewModelFacetObjectInterface 和 RecreatableObjectFacetForRecreatableObjectInterface)

我想我明白错误告诉我什么,nl 为 ViewModel 接口定义了 2 个视图模型方面接口。我遇到的问题是 RecreatableObjectFacetForRecreatableObjectInterface 已被 RecreatableObjectFacetFactory 注册,这应该根据 isis.properties 被排除。我正在使用 isis 1.15.1

我的问题是:

  1. exclude 在 1.15.1 中是否正常工作?
  2. 如何确保 RecreatableObjectFacetForRecreatableObjectInterface 在启动期间不会被框架注册?
4

1 回答 1

0

我调查了这个,不幸的是它似乎被打破了。我提出了一张ISIS-1780的票,以便在下一个版本中修复。

于 2017-11-21T07:19:32.877 回答