You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by Pablo Lalloni <pl...@afip.gov.ar> on 2006/08/04 16:55:33 UTC
Core service implementation instantiation hook
I would like to have a hook somewhere in the process of services instantiation
to be able to customize how core service implementation instances are
created.
Looking around in the framework code I can't find an obvious way of doing this
using just descriptors, it seems like I will need to make some changes for
doing this so, I was hoping someone here, with better knowledge of internals,
could point me to right direction.
Just FYI what I'm trying to do is put monitoring proxies everywhere (without
needing to put explicit <interceptor/> in every service point).
--
Pablo I. Lalloni <pl...@gmail.com>
Jabber#plalloni@jabber.ru · ICQ#6322141 · MSN#plalloni@gmail.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
G No room for line, 0:1
Re: Core service implementation instantiation hook
Posted by Knut Wannheden <kn...@gmail.com>.
Pablo,
I think I even remember starting that thread. And it's been on the
TODO list for HiveMind 1.2
(http://jakarta.apache.org/hivemind/todo.html) ever since. Only that
we then thought version 1.2 to be months rather than years away...
As we're currently trying to cut down on work towards a fancier XML
syntax I think this idea should now really find its way into the
discussions on the registry construction API we're trying to work out.
I just earlier today posted an idea on this very topic in the thread
"registry construction api". Your input is most welcome!
--knut
On 8/4/06, Pablo Lalloni <pl...@afip.gov.ar> wrote:
> El Viernes, 4 de Agosto de 2006 12:19, Knut Wannheden escribió:
> > I assume you want to wrap the core service implementation inside a
> > proxy. Don't think you can currently do what you want with HiveMind.
> > It would however be nice if you could specify that an interceptor
> > should apply to many (or all) services.
>
> Yes, this need keeps showing up... I remember myself writing an idea in
> http://article.gmane.org/gmane.comp.jakarta.hivemind.devel/357 a couple of
> years ago!
>
> > Can you maybe use AspectJ? Just a thought...
>
> Not currently, AspectJ is out of the project toolbox. :-(
>
> --
> Pablo I. Lalloni <pl...@gmail.com>
>
> Jabber#plalloni@jabber.ru · ICQ#6322141 · MSN#plalloni@gmail.com
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Your object is to save the world, while still leading a pleasant life.
>
>
Re: Core service implementation instantiation hook
Posted by Pablo Lalloni <pl...@afip.gov.ar>.
El Viernes, 4 de Agosto de 2006 12:19, Knut Wannheden escribió:
> I assume you want to wrap the core service implementation inside a
> proxy. Don't think you can currently do what you want with HiveMind.
> It would however be nice if you could specify that an interceptor
> should apply to many (or all) services.
Yes, this need keeps showing up... I remember myself writing an idea in
http://article.gmane.org/gmane.comp.jakarta.hivemind.devel/357 a couple of
years ago!
> Can you maybe use AspectJ? Just a thought...
Not currently, AspectJ is out of the project toolbox. :-(
--
Pablo I. Lalloni <pl...@gmail.com>
Jabber#plalloni@jabber.ru · ICQ#6322141 · MSN#plalloni@gmail.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your object is to save the world, while still leading a pleasant life.
RE: Core service implementation instantiation hook
Posted by James Carman <ja...@carmanconsulting.com>.
The new idea of a "global" interceptor factory would take care of applying
one interceptor to multiple service points. We might want to consider
something similar to the Spring "autoproxy" facility which allows us to
define "selector" implementations based on different criteria. One criteria
implementation might take an AspectJ joinpoint definition string and see if
it matches the method/class. Another might just be a simpler regex
implementation. Anyway, I think you get the point.
-----Original Message-----
From: Knut Wannheden [mailto:knut.wannheden@gmail.com]
Sent: Friday, August 04, 2006 11:20 AM
To: dev@hivemind.apache.org
Subject: Re: Core service implementation instantiation hook
I assume you want to wrap the core service implementation inside a
proxy. Don't think you can currently do what you want with HiveMind.
It would however be nice if you could specify that an interceptor
should apply to many (or all) services.
Can you maybe use AspectJ? Just a thought...
--knut
On 8/4/06, Pablo Lalloni <pl...@afip.gov.ar> wrote:
> I would like to have a hook somewhere in the process of services
instantiation
> to be able to customize how core service implementation instances are
> created.
>
> Looking around in the framework code I can't find an obvious way of doing
this
> using just descriptors, it seems like I will need to make some changes for
> doing this so, I was hoping someone here, with better knowledge of
internals,
> could point me to right direction.
>
> Just FYI what I'm trying to do is put monitoring proxies everywhere
(without
> needing to put explicit <interceptor/> in every service point).
>
> --
> Pablo I. Lalloni <pl...@gmail.com>
>
> Jabber#plalloni@jabber.ru . ICQ#6322141 . MSN#plalloni@gmail.com
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
> G No room for line, 0:1
>
>
Re: Core service implementation instantiation hook
Posted by Knut Wannheden <kn...@gmail.com>.
I assume you want to wrap the core service implementation inside a
proxy. Don't think you can currently do what you want with HiveMind.
It would however be nice if you could specify that an interceptor
should apply to many (or all) services.
Can you maybe use AspectJ? Just a thought...
--knut
On 8/4/06, Pablo Lalloni <pl...@afip.gov.ar> wrote:
> I would like to have a hook somewhere in the process of services instantiation
> to be able to customize how core service implementation instances are
> created.
>
> Looking around in the framework code I can't find an obvious way of doing this
> using just descriptors, it seems like I will need to make some changes for
> doing this so, I was hoping someone here, with better knowledge of internals,
> could point me to right direction.
>
> Just FYI what I'm trying to do is put monitoring proxies everywhere (without
> needing to put explicit <interceptor/> in every service point).
>
> --
> Pablo I. Lalloni <pl...@gmail.com>
>
> Jabber#plalloni@jabber.ru · ICQ#6322141 · MSN#plalloni@gmail.com
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> G No room for line, 0:1
>
>