Hi!

We have few existing Hibernate interceptors and we successfully added those
to the Hibernate configuration, but the question is how to inject services /
application states to those interceptors.

This cannot be done with autobind because (According to Hibernate docs.)
Hibernate interceptors must contain parameterless constructors that
Hibernate uses when instantiates these classes. If interceptors are used the
Hibernate way, then the lifecycle etc. are controlled by Hibernate, and T5
services cannot be used?

How to solve this?

 - 99

Ps. If the answer is to use T5 decorators instead of Hibernate interceptors
could someone post a short example how to decorate a service so that all
classes implementing specific interface that come to service as parameters
are updated to include correct, let's say, update timestamp? Or better yet
include it anyway so I can implement it that way in the future :) 

Thanks! 

(I did read the IOC docs but couldn't quite picture how to achieve this, as
I can target multiple services, but how do I intercept all those entities
that go as  parameters to service _methods_?)
-- 
View this message in context: 
http://www.nabble.com/Using-Hibernate-interceptors-with-T5-Hibernate-tp18002714p18002714.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to