commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <ja...@carmanconsulting.com>
Subject Re: [proxy] Refactoring Stub Support...
Date Sat, 27 Jul 2013 16:16:02 GMT
I have created

https://issues.apache.org/jira/browse/PROXY-20

to track the progress of this issue.  I have already checked in some
code into the branch.


On Sat, Jul 27, 2013 at 9:54 AM, James Carman
<james@carmanconsulting.com> wrote:
> On Sat, Jul 27, 2013 at 9:44 AM, Romain Manni-Bucau
> <rmannibucau@gmail.com> wrote:
>> Hi
>>
>> Isnt it a particular kind of interceptor/handler (CompositeInterceptor)? So
>> does it need so much details?
>
> Well, the idea behind "stubbing" is that we would be specifying
> behavior for very specific method invocation cases (such as only a
> single method or only when the parameters match certain values).  If
> we introduce the abstractions I'm suggesting, we can handle these
> cases and many more.  I don't know if we need the Response concept,
> since the interface exactly matches the Interceptor interface.
> Perhaps we call the new class ConditionalInterceptor and you register
> InvocationMatcher/Interceptor pairs just so we don't have to re-invent
> the wheel.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message