All,

In HiveMind 2.0, it'd be nice to change some of the API around a bit.  For
instance:

1.  The registry implementation should be handed a ProxyFactory (like the
one from Jakarta Commons Proxy) in the constructor which allows us to
substitute proxying techniques.  Jakarta Commons Proxy already has code for
this and we should either copy it or use it as a dependency.  This would
abstract away all of the proxying logic from our (and users) code.

2.  The interceptor factories shouldn't be given access to the "interceptor
stack."  They should just have to return an interceptor instance (we could
create our own interceptor interface or use AOP Alliance's API).  HiveMind
itself will take care of putting the interceptor onto the stack by creating
an intercepting proxy using the ProxyFactory.  After all, don't you find it
weird that a "factory" doesn't really return anything?  This is a really big
one, IMHO.  The Javassist stuff is just too difficult for the everyday user.
But, they can instantiate an interceptor object quite easily.

Thoughts?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to