private Object getTraceable ( Object d ) throws ResourceException { WSJdbcTracer tracer = new WSJdbcTracer ( helper . getTracer ( ) , helper . getPrintWriter ( ) , d , type , null , true ) ; Set < Class < ? > > classes = new HashSet < Class < ? > > ( ) ; for ( Class < ? > cl = d . getClass ( ) ; cl != null ; cl = cl . getSuperclass ( ) ) classes . addAll ( Arrays . asList ( cl . getInterfaces ( ) ) ) ; return Proxy . newProxyInstance ( jdbcDriverLoader , classes . toArray ( new Class [ classes . size ( ) ] ) , tracer ) ; }
Enable supplemental tracing for the underlying data source or java . sql . Driver .