On 4/26/07, Maarten Bosteels <[EMAIL PROTECTED]> wrote:
I had the same idea as Trustin: a dedicated attribute storage per filter per
session, based on an IdentityHashMap.
I would definitely try to avoid numbering hell.

IoSession:

private IdentityHashMap <IoFilter, Map<String,Object>> ioFilterAttributes;

public  Object getAttribute(IoFilter filter, String key) {
 return ioFilterAttributes.get(filter).get(key);
}

I had the same idea actually, using IdentityHashMap. :)

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to