/** * Create using a loader and class name so that the parent class can be * lazily loaded when the writer is used to generate a dynamic class. * <p> * The loader must not be null and the parentClassName must not be null and * not an empty String. The parentClassName will be converted to a class * using the provided loader lazily. * * @see #getParentClass() * @see DynamicException#illegalDynamicClassWriter(DynamicClassLoader, * String) */ public DynamicClassWriter(String parentClassName) { if (parentClassName == null || parentClassName.length() == 0) { throw DynamicException.illegalParentClassName(parentClassName); } this.parentClassName = parentClassName; }
/** * Create using a loader and class name so that the parent class can be * lazily loaded when the writer is used to generate a dynamic class. * <p> * The loader must not be null and the parentClassName must not be null and * not an empty String. The parentClassName will be converted to a class * using the provided loader lazily. * * @see #getParentClass() * @see DynamicException#illegalDynamicClassWriter(DynamicClassLoader, * String) */ public DynamicClassWriter(String parentClassName) { if (parentClassName == null || parentClassName.length() == 0) { throw DynamicException.illegalParentClassName(parentClassName); } this.parentClassName = parentClassName; }
/** * Create using a loader and class name so that the parent class can be * lazily loaded when the writer is used to generate a dynamic class. * <p> * The loader must not be null and the parentClassName must not be null and * not an empty String. The parentClassName will be converted to a class * using the provided loader lazily. * * @see #getParentClass() * @see DynamicException#illegalDynamicClassWriter(DynamicClassLoader, * String) */ public DynamicClassWriter(String parentClassName) { if (parentClassName == null || parentClassName.length() == 0) { throw DynamicException.illegalParentClassName(parentClassName); } this.parentClassName = parentClassName; }