Class SimpleLoadTimeWeaver

java.lang.Object
org.springframework.instrument.classloading.SimpleLoadTimeWeaver
All Implemented Interfaces:
LoadTimeWeaver

public class SimpleLoadTimeWeaver extends Object implements LoadTimeWeaver
LoadTimeWeaver that builds and exposes a SimpleInstrumentableClassLoader.

Mainly intended for testing environments, where it is sufficient to perform all class transformation on a newly created ClassLoader instance.

Since:
2.0
Author:
Rod Johnson, Juergen Hoeller
See Also:
  • Constructor Details

    • SimpleLoadTimeWeaver

      public SimpleLoadTimeWeaver()
      Create a new SimpleLoadTimeWeaver for the current context ClassLoader.
      See Also:
    • SimpleLoadTimeWeaver

      public SimpleLoadTimeWeaver(SimpleInstrumentableClassLoader classLoader)
      Create a new SimpleLoadTimeWeaver for the given ClassLoader.
      Parameters:
      classLoader - the ClassLoader to build a simple instrumentable ClassLoader on top of
  • Method Details