A couple other notes about the idea of a Application-defined ResourceFactory.

It must be thread-safe.
It provides inversion of control.
It allows me to decide policy regarding Resource allocation (one-per-call,
thread-safe stateless, singleton, pooling, etc). 

The more I think about it, the more I think this is a really good hook to
have in addition to the basic attach("...", Resource.class).

Sean



Reply via email to