程序包 cn.taketoday.instrument
@NonNullApi
@NonNullFields
package cn.taketoday.instrument
Support package for load time weaving based on class loaders,
as required by JPA providers (but not JPA-specific).
-
类说明
LoadTimeWeaverrelying on VMInstrumentation.Defines the contract for adding one or moreClassFileTransformersto aClassLoader.LoadTimeWeaverwhich uses reflection to delegate to an underlying ClassLoader with well-known transformation hooks.Subclass of ShadowingClassLoader that overrides attempts to locate certain files.ClassLoader decorator that shadows an enclosing ClassLoader, applying registered transformers to all affected classes.Simplistic implementation of an instrumentableClassLoader.LoadTimeWeaverthat builds and exposes aSimpleInstrumentableClassLoader.ClassLoader that can be used to load classes without bringing them into the parent loader.LoadTimeWeaverimplementation for Tomcat's neworg.apache.tomcat.InstrumentableClassLoader.ClassFileTransformer-based weaver, allowing for a list of transformers to be applied on a class byte array.