org.codehaus.groovy.reflection

## Class ClassLoaderForClassArtifacts

- java.lang.Object
- - java.lang.ClassLoader
  - - org.codehaus.groovy.reflection.ClassLoaderForClassArtifacts

Direct Known Subclasses:
  CallSiteClassLoader

    public class ClassLoaderForClassArtifacts
    extends java.lang.ClassLoader

### Field Summary

Fields
`java.lang.ref.SoftReference<java.lang.Class>` `klazz`

### Constructor Summary

Constructors
Constructor and Description
`ClassLoaderForClassArtifacts(java.lang.Class klazz)`

### Method Summary

Methods
`java.lang.String` `createClassName(java.lang.reflect.Method method)`
`java.lang.Class` `define(java.lang.String name, byte[] bytes)`
`java.lang.reflect.Constructor` `defineClassAndGetConstructor(java.lang.String name, byte[] bytes)`
`java.lang.Class` `loadClass(java.lang.String name)`

### Methods inherited from class 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, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners`

### Methods inherited from class java.lang.Object

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

### Field Detail

#### klazz

    public final java.lang.ref.SoftReference<java.lang.Class> klazz

### Constructor Detail

#### ClassLoaderForClassArtifacts

    public ClassLoaderForClassArtifacts(java.lang.Class klazz)

### Method Detail

#### define

    public java.lang.Class define(java.lang.String name,
                         byte[] bytes)

#### loadClass

    public java.lang.Class loadClass(java.lang.String name)
                              throws java.lang.ClassNotFoundException

Overrides:
  `loadClass` in class `java.lang.ClassLoader`
Throws:
  `java.lang.ClassNotFoundException`

#### createClassName

    public java.lang.String createClassName(java.lang.reflect.Method method)

#### defineClassAndGetConstructor

    public java.lang.reflect.Constructor defineClassAndGetConstructor(java.lang.String name,
                                                             byte[] bytes)