I get this exception at Domain.Build:

Domain build failed: Xtensive.Storage.DomainBuilderException: Abstract class MyAbstractClass does not have registered implementors.
   at Xtensive.Storage.Building.ModelInspector.InspectAbstractTypes()
   at Xtensive.Storage.Building.Builders.ModelBuilder.Run()
   at Xtensive.Storage.Building.Builders.DomainBuilder.BuildModel()
   at Xtensive.Storage.Building.Builders.DomainBuilder.BuildDomain(DomainConfiguration configuration, DomainBuilderConfiguration builderConfiguration)
   at Xtensive.Storage.Upgrade.UpgradingDomainBuilder.BuildStageDomain(UpgradeStage stage)
   at Xtensive.Storage.Upgrade.UpgradingDomainBuilder.Build(DomainConfiguration configuration)

This is not practical because we use a plugin structure : some abstract classes are defined in a core assembly, with implementation defined in other assemblies : plugins.

With this, I'm required to register plugins even if I'm not using them.

Is there is reason for this limitation?

asked Sep 07 '10 at 08:53

olorin's gravatar image

olorin
358878792

edited Sep 08 '10 at 06:08

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

Hello,

It seems that abstract type are being inspected this way according to the following issue. I'll investigate the reason of its implementation soon.

(Sep 07 '10 at 09:32) Dmitri Maximov Dmitri%20Maximov's gravatar image

One Answer:

There is no easy way to handle this issue without this workaround, i.e. we decided to choose the less dangerous among two evils:

  • Throw an error if you query for an abstract type w/o descendants
  • Require each abstract type to have at least one non-abstract descendant. I.e. you shouldn't have their instances, but should have at least one descendant type.

This is a quickfix, so we'll think about full solution. But for now we can't offer anything better.

answered Sep 07 '10 at 09:48

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

edited Sep 07 '10 at 09:48

I understand : please let me know when this is fixed, it's not really practical.

(Sep 07 '10 at 10:37) olorin olorin's gravatar image

The issue is fixed.

(Sep 08 '10 at 13:07) Alex Yakunin Alex%20Yakunin's gravatar image
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA