org.springframework.instrument.classloading

## 类 SimpleInstrumentableClassLoader

- java.lang.Object
- - java.lang.ClassLoader
  - - org.springframework.core.DecoratingClassLoader
    - - org.springframework.core.OverridingClassLoader
      - - org.springframework.instrument.classloading.SimpleInstrumentableClassLoader

-     public class SimpleInstrumentableClassLoader
      extends org.springframework.core.OverridingClassLoader

  Simplistic implementation of an instrumentable `ClassLoader`.

  Usable in tests and standalone environments.

  从以下版本开始:
    2.0
  作者:
    Rod Johnson, Costin Leau

- - ### 字段概要

    - ### 从类继承的字段 org.springframework.core.OverridingClassLoader

      `DEFAULT_EXCLUDED_PACKAGES`

  - ### 构造器概要

    构造器
    构造器和说明
    `SimpleInstrumentableClassLoader(ClassLoader parent)` Create a new SimpleInstrumentableClassLoader for the given ClassLoader.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `addTransformer(ClassFileTransformer transformer)` Add a `ClassFileTransformer` to be applied by this ClassLoader.
    `protected byte[]` | `transformIfNecessary(String name, byte[] bytes)`

    - ### 从类继承的方法 org.springframework.core.OverridingClassLoader

      `isEligibleForOverriding, loadBytesForClass, loadClass, loadClass, loadClassForOverriding, openStreamForClass`

    - ### 从类继承的方法 org.springframework.core.DecoratingClassLoader

      `excludeClass, excludePackage, isExcluded`

    - ### 从类继承的方法 java.lang.ClassLoader

      `clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### SimpleInstrumentableClassLoader

          public SimpleInstrumentableClassLoader(@Nullable
                                                 ClassLoader parent)

      Create a new SimpleInstrumentableClassLoader for the given ClassLoader.
      参数:
        `parent` - the ClassLoader to build an instrumentable ClassLoader for

  - ### 方法详细资料

    - #### addTransformer

          public void addTransformer(ClassFileTransformer transformer)

      Add a `ClassFileTransformer` to be applied by this ClassLoader.
      参数:
        `transformer` - the `ClassFileTransformer` to register

    - #### transformIfNecessary

          protected byte[] transformIfNecessary(String name,
                                                byte[] bytes)

      覆盖:
        `transformIfNecessary` 在类中 `org.springframework.core.OverridingClassLoader`