|
Re: EMFInterceptor [message #878205 is a reply to message #877998] |
Mon, 28 May 2012 20:31 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi,
I guess you found this page:
http://wiki.eclipse.org/Teneo/Hibernate/Extensions#ExtensionManager
So you create a datastore and then before initializing it you do this:
final ExtensionManager extensionManager = dataStore.getExtensionManager();
extensionManager.registerExtension(EMFInterceptor.class.getName(), MyGreatInterceptor.class.getName());
I don't know the jboss hibernate interceptors.. The EMF Interceptor is an implementation of the hibernate interceptor.
You can find the source code of the EMF Interceptor here:
http://git.eclipse.org/c/teneo/org.eclipse.emf.teneo.git/tree/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/EMFInterceptor.java
gr. Martin
n 05/28/2012 11:25 AM, Serhan OZAN wrote:
> Hello,
>
> I have an application that uses the EMF teneo with osgi framework and I'd like to implement an audit logging mechanism.
> As I am new to the platform, all I managed to learn is that I have to extend the EMFInterceptor class and then register
> it as an extension. However, I don't know how to do it. Besides, I wonder how this differs from the JBoss hibernate
> interceptors? I mean how can I implement different logger classes for different model objects?
>
> Any help is appreciated.
>
> Thanks in advance.
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
Powered by
FUDForum. Page generated in 0.05086 seconds