isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Haywood <...@haywood-associates.co.uk>
Subject Re: 答复: value type or entity type
Date Tue, 09 Apr 2013 06:08:10 GMT
On 9 April 2013 03:54, 张峰昌 <alain.zhang@gmail.com> wrote:

>
> ** **
>
>
>
> How to inject domain services which I want to use in some value type java
> object or java enum in isis.  For example,I want to load some business rule
> from somewhere according to a domain service when dealing with
> OrderStatus.BuyerConfirm.confirm() operation.****
>
> **
>

You can't.  I can see why you might want to, but value types/enums are
immutable.

Instead, pass in the domain services as arguments to their methods that
need them.  That's the best I can suggest, I'm afraid.

 HTH
Dan


>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message