@Override
        public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {

            InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);

            // closeMethod
            InstrumentMethod closeMethod = InstrumentUtils.findMethod(target, "close");

            closeMethod.addScopedInterceptor(DataSourceCloseConnectionInterceptor.class, DruidConstants.SCOPE);

            return target.toBytecode();
        }
The type Druid plugin.

@author Victor.Zxy
@version 1.8.1
@since 2017/07/21
agent-module/plugins/druid/src/main/java/com/navercorp/pinpoint/plugin/druid/DruidPlugin.java