A question about context traversal

Cantor, Scott cantor.2 at osu.edu
Thu Feb 6 23:42:43 EST 2014


On 2/6/14, 11:39 PM, "Tom Zeller" <tzeller at dragonacea.biz> wrote:

>I guess my other question is : why is it PRC.getInboundMessageContext()
>instead of PRC.getSubcontext(MessageContext<InboundMessageType>) or some
>such ?
>
>Would an inbound or outbound message context ever live somewhere else in
>the tree ?

One justification is that you can't ever have two contexts of the same
type next to each other as siblings (and recall that generic types are
never kept at runtime so you can't include them in expressions indicating
a class type either).

We could have done separate context types, InboundMessageContext and
OutboundMessageContext, but we haven't done that much (subclassing context
types to give them different semantics).

-- Scott




More information about the dev mailing list