|
|
|
@ -6,8 +6,6 @@ import com.fr.third.net.bytebuddy.description.type.TypeDescription;
|
|
|
|
|
import com.fr.third.net.bytebuddy.dynamic.DynamicType; |
|
|
|
|
import com.fr.third.net.bytebuddy.utility.JavaModule; |
|
|
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* created by Harrison on 2022/03/08 |
|
|
|
|
**/ |
|
|
|
@ -16,12 +14,6 @@ public class DesignerAnalyzerListener extends AgentBuilder.Listener.Adapter {
|
|
|
|
|
@Override |
|
|
|
|
public void onTransformation(TypeDescription typeDescription, ClassLoader classLoader, JavaModule module, boolean loaded, DynamicType dynamicType) { |
|
|
|
|
FineLoggerFactory.getLogger().debug("Designer-Analyzer transform successfully:{}", typeDescription); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
dynamicType.saveIn(new File("/Users/3dot141/Temp/bytebuddy")); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|