You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Vinicius Carvalho <ja...@gmail.com> on 2005/07/16 19:56:33 UTC
Interceptors 101 examples
Hello there! I was wondering if someone has a nice 101 example of
interceptors usage. Basically what I'd like to do is much more like
AOP interceptors
Implement a class that perform something, and call that class before a
given method on a given service executes. I'd like to use this on
hivemind to ensure data integrity for example:
before every update method, check if the id in the pojo is not null ... :D
Any suggestion to point me where to start?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
RE: Interceptors 101 examples
Posted by James Carman <ja...@carmanconsulting.com>.
Better yet, if you want to use AOP Alliance MethodInterceptors, that is
already supported in HiveMind 1.1. I have an example of it in my article
(http://www.theserverside.com/articles/article.tss?l=HivemindBuzz).
-----Original Message-----
From: Hugo Palma [mailto:hpalma@digitalis.pt]
Sent: Tuesday, July 19, 2005 9:49 AM
To: hivemind-user@jakarta.apache.org
Subject: Re: Interceptors 101 examples
Have you checked out
http://jakarta.apache.org/hivemind/hivemind-examples/logging.html
Cheers
Hugo
Vinicius Carvalho wrote:
> Hello there! I was wondering if someone has a nice 101 example of
> interceptors usage. Basically what I'd like to do is much more like
> AOP interceptors
>
> Implement a class that perform something, and call that class before a
> given method on a given service executes. I'd like to use this on
> hivemind to ensure data integrity for example:
>
> before every update method, check if the id in the pojo is not null ... :D
>
> Any suggestion to point me where to start?
>
>
> Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org
Re: Interceptors 101 examples
Posted by Hugo Palma <hp...@digitalis.pt>.
Have you checked out
http://jakarta.apache.org/hivemind/hivemind-examples/logging.html
Cheers
Hugo
Vinicius Carvalho wrote:
> Hello there! I was wondering if someone has a nice 101 example of
> interceptors usage. Basically what I'd like to do is much more like
> AOP interceptors
>
> Implement a class that perform something, and call that class before a
> given method on a given service executes. I'd like to use this on
> hivemind to ensure data integrity for example:
>
> before every update method, check if the id in the pojo is not null ... :D
>
> Any suggestion to point me where to start?
>
>
> Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org