jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] Re: properties, Invocation, Client, and Resource

From: Bill Burke <bburke_at_redhat.com>
Date: Thu, 09 Jun 2011 12:14:21 -0400

On 6/9/11 12:12 PM, Santiago Pericas-Geertsen wrote:
>
> On Jun 8, 2011, at 9:52 AM, Bill Burke wrote:
>
>>> Is this something we can specify in the javadoc for Invocation.getProperties() and BaseContext.getProperties()?
>>>
>>
>> Yes. But also I'd like to brainstorm a little bit more about this.
>>
>>
>> For example, maybe this is yet another way to bind an interceptor. An interceptor could get a callback with a properties map and decide whether or not to apply itself.
>
> What if we change the DynamicBinding interface as follows:
>
> public interface DynamicBinding<T extends BaseContext> {
> public boolean isBound(T ctx);
> }
>
> That'll give access to everything in the context. Incidentally, why did you use AccessibleObject as the return type of getAppliedTarget() in your original proposal?
>

I was thinking of at boot/deployment time, not runtime.


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com