Results 1 to 2 of 2

Thread: AOP on Hibernate domain objects without LTW possible?

  1. #1
    Join Date
    Apr 2008
    Posts
    17

    Arrow AOP on Hibernate domain objects without LTW possible?

    Hi,

    is it possible to configure AOP advices on methods of objects created by Hibernate, without using load time weaving?

    What I try to do is passing Hibernate mapped objects from server to client. On the client I want to use an Around-Advice on all Getters of the domain objects.

    It works well with load time weaving. But the problem is I can't get load time weaving to work in a Eclipse Plugin Project (OSGi).

    Is it possible to use Proxy-AOP on Hibernate objects? Otherwise I have to get load time weaving work with Eclipse OSGi project.

    Thanks in advance,

    byto

  2. #2
    Join Date
    Jun 2006
    Location
    SF Bay Area, California
    Posts
    524

    Default

    You will need to use a form of AspectJ weaving to advise your domain objects.

    You should file a bug with AJDT (eclipse.org/ajdt) to get OSGi+LTW combination work. Alternatively, build-time weaving may be a way to go.

    -Ramnivas
    Ramnivas Laddad (Follow me on Twitter)
    AspectJ in Action: Enterprise AOP with Spring Applications (2nd edition). Now available!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •