Re: [HiveMind] HiveMind ideas

2004-03-04 Thread Johan Lindquist
- One of the things we need to be able to do is to choose particular service implementations at startup time, based on property or preference settings. In particular, I'd like to be able to swap out all remote services in favor of local (dummy) services based on a single property value; or

RE: [HiveMind] HiveMind ideas - interceptor categories

2004-03-04 Thread Howard M. Lewis Ship
To: Jakarta Commons Developers List Subject: Re: [HiveMind] HiveMind ideas - interceptor categories Hi Harish, My ordering suggestion was not a genius one, it should just make the current ordering a bit easier to use. I just thought if you had some standard-ordering numbers this would

Re: [HiveMind] HiveMind ideas

2004-03-04 Thread Chris Nokleberg
Harish Krishnaswamy hkrishnaswamy at comcast.net writes: I am yet to explore Javassist, but would certainly like to see some comments comparing it to Cglib2. I have seen some great reviews for it and not to mention its widespread use in other products. The speed of the two will probably be

Re: [HiveMind] HiveMind ideas - interceptor categories

2004-03-04 Thread Harish Krishnaswamy
The default ordering will certainly be good but any other level of abstractions for the ordering seems like unnecessary complications of what is supposed to be a simple thing. May be I am missing something here? -Harish Christian Essl wrote: Hi Harish, My ordering suggestion was not a genius

Re: [HiveMind] HiveMind ideas

2004-03-04 Thread Harish Krishnaswamy
Thanks Chris! I was actually just taking a look at the examples and trying some out. I really like its straight forwardness like you mention. I have a question though (now that you are here ;) ). I am actually stuck at the moment trying to have multiple callbacks for all methods in a class and

RE: [HiveMind] HiveMind ideas

2004-03-04 Thread Howard M. Lewis Ship
The speed of the two will probably be comparable. The main advantage of using CGLIB2 is that your code will be simpler, since you are dealing against a normal Java API (comparable to java.lang.reflect.Proxy) instead of writing pseudo-bytecode in string literals as you do with Javassist.

Re: [HiveMind] HiveMind ideas

2004-03-04 Thread Chris Nokleberg
Harish Krishnaswamy wrote: I have a question though (now that you are here ;) ). I am actually stuck at the moment trying to have multiple callbacks for all methods in a class and the filter only allows me to return one callback for a method? Yes, you can only have one Callback per method. I

Re: [HiveMind] HiveMind ideas

2004-03-04 Thread Chris Nokleberg
Howard M. Lewis Ship wrote: With JDK proxies, and the CGLib samples I've seen, you still have flow of control into a single method that must use cascading if statements to determine what method was actually invoked originally. In CGLIB 1.0 this was the case, but one of the big changes in CGLIB2

Re: [HiveMind] HiveMind ideas

2004-03-04 Thread Harish Krishnaswamy
Yes, and soon after I posted this message I figured it out. I simply chained the interceptors via the constructor and passed in the topmost interceptor to the enhancer. It is really very simple and straight-forward. And yes, I have joined the mailing list too and will come back there for

[HiveMind] HiveMind ideas

2004-03-03 Thread Howard M. Lewis Ship
This would be valuable discussion for the coming hivemind mailing lists and wiki. Hi Howard, I've been looking pretty closely at HiveMind for the past few days -- glad the IP issues have been squared away -- and I have to say, it looks terrific. I have a couple of minor comments

Re: [HiveMind] HiveMind ideas

2004-03-03 Thread Harish Krishnaswamy
Howard M. Lewis Ship wrote: This would be valuable discussion for the coming hivemind mailing lists and wiki. Hi Howard, I've been looking pretty closely at HiveMind for the past few days -- glad the IP issues have been squared away -- and I have to say, it looks terrific. I have a

RE: [HiveMind] HiveMind ideas

2004-03-03 Thread Howard M. Lewis Ship
From: Howard M. Lewis Ship [EMAIL PROTECTED] - I believe your placeholder for version checking is at the wrong level. I think versioning should be at the service interface level, not the module level. Isn't that how Eclipse does it? What are your thoughts here? I'm pretty

Re: [HiveMind] HiveMind ideas

2004-03-03 Thread Harish Krishnaswamy
Howard M. Lewis Ship wrote: From: Howard M. Lewis Ship [EMAIL PROTECTED] - I believe your placeholder for version checking is at the wrong level. I think versioning should be at the service interface level, not the module level. Isn't that how Eclipse does it? What

RE: [HiveMind] HiveMind ideas

2004-03-03 Thread Luke Blanshard
Rapdily changing interfaces? Not just implementations, but interfaces? That sounds more like a alpha cycle than a full release cycle. I suppose it does. The reality is, though, that a given jar file is likely to have code whose level of stability spans a pretty wide range. Even interfaces.

Re: [HiveMind] HiveMind ideas

2004-03-03 Thread Luke Blanshard
From: Howard M. Lewis Ship [EMAIL PROTECTED] - I believe your placeholder for version checking is at the wrong level. I think versioning should be at the service interface level, not the module level. Isn't that how Eclipse does it? What are your thoughts here? I'm pretty sure

Re: [HiveMind] HiveMind ideas

2004-03-03 Thread Christian Essl
Hallo, Congratulations that Hivemind is back. Sorry that I haven't mailed before, but I was very busy and wasn't checking for HiveMind that often anymore. Especially I want to apologize with Howard, whoes mail I must have overseen. - Why use Javassist instead of dynamic proxies? I am yet to

Re: [HiveMind] HiveMind ideas

2004-03-03 Thread Harish Krishnaswamy
Hi Christian, Welcome back! I know you have done some work on dynamic proxy interceptors before, I shall take a look at it and see if it helps. As far as interceptor ordering, I really don't see the benefit. Could you be more elaborate? -Harish PS. I am going to bed now, don't expect an