New Posts New Posts RSS Feed: Property Interceptors
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Property Interceptors

 Post Reply Post Reply
Author
eniben View Drop Down
Newbie
Newbie
Avatar

Joined: 26-Sep-2007
Location: Nigeria
Posts: 16
Post Options Post Options   Quote eniben Quote  Post ReplyReply Direct Link To This Post Topic: Property Interceptors
    Posted: 04-Sep-2010 at 1:48am
Hi,

When do Property Interceptors fire?  When an Entity is live (added to the EntityManager) and a property is accessed or mutated, they fire - agreed.

But do they also fire when the object is detached?  I noticed this when creating an object and having its primary key set before adding it to the EntityManager.

Do they fire during serialization?  DevForce now seems to use property level serialization as opposed to the "deep copying" of the past.  That means when an object is deserialized either on the BOS or the client the property accessors are called.  Will the object know it's being deserialized and the EntityProperties respect this and know not to call declared PropertyInterceptors?

I ask this because I am getting some curious behaviour from a troublesome object in my Domain.  I haven't quite noticed it with others so maybe I am fishing.  But I can't seem to nail it to anything.



Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 10-Sep-2010 at 6:55pm
Hi,
 
Property Interceptors do fire when the entity is detached(that's standard behavior).
 
However, they do not fire during serialization (in fact, they should not).
 
 
Back to Top
eniben View Drop Down
Newbie
Newbie
Avatar

Joined: 26-Sep-2007
Location: Nigeria
Posts: 16
Post Options Post Options   Quote eniben Quote  Post ReplyReply Direct Link To This Post Posted: 11-Sep-2010 at 10:11pm
Ok, thanks.  Just needed to check.

Edited by eniben - 11-Sep-2010 at 10:12pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down