On 12/20/2012 09:35 AM, Vernat Emeric wrote:
public static interface DataSourceWrapper { DataSource wrap(DataSource source); }
Make that extend ExtensionPoint so that the monitoring plugin registers an @Extension for its wrapper; then the DB plugin would look for all impls of DataSourceWrapper and chain them before returning a DataSource to the outside.