/** * Specifies classloaders for loading created classes. * If classloader not specified, default one will be used. */ public T setClassLoader(final ClassLoader classLoader) { this.classLoader = classLoader; return _this(); }
/** * Sets variable proxy class name so every time when new proxy class is created * its name will be different,so one classloader may load it without a problem. * Otherwise, sets constant proxy class name so each time created proxy * class will have the same name. Such class can be loaded only once by a classloader. * <p> * This prevents "<code>java.lang.LinkageError: duplicate class definition</code>" errors. */ public T setVariableClassName(final boolean variableClassName) { this.variableClassName = variableClassName; return _this(); }
/** * Specifies custom classname suffix to be added to the class name of created proxy. * Warning: when class name suffix is not used, full classname has to be * specified that differs from target class name. */ public T setClassNameSuffix(final String suffix) { this.classNameSuffix = suffix; return _this(); }
/** * Specifies 'forced' mode. If <code>true</code>, new proxy class will be created even if there are no * matching pointcuts. If <code>false</code>, new proxy class will be created only if there is at least one * matching pointcut - otherwise, original class will be returned. */ public T setForced(final boolean forced) { this.forced = forced; return _this(); }
public T setDebugFolder(final File debugFolder) { this.debugFolder = debugFolder; return _this(); }
/** * Specifies the debug folder where all created classes will be * written to, for debugging purposes. */ public T setDebugFolder(final String debugFolder) { this.debugFolder = new File(debugFolder); return _this(); }
/** * Adds an aspect. */ public T withAspect(final A proxyAspect) { proxyAspectList.add(proxyAspect); return _this(); }
public T withAspects(final A... aspects) { Collections.addAll(proxyAspectList, aspects); return _this(); }
/** * Sets variable proxy class name so every time when new proxy class is created * its name will be different,so one classloader may load it without a problem. * Otherwise, sets constant proxy class name so each time created proxy * class will have the same name. Such class can be loaded only once by a classloader. * <p> * This prevents "<code>java.lang.LinkageError: duplicate class definition</code>" errors. */ public T setVariableClassName(final boolean variableClassName) { this.variableClassName = variableClassName; return _this(); }
/** * Specifies 'forced' mode. If <code>true</code>, new proxy class will be created even if there are no * matching pointcuts. If <code>false</code>, new proxy class will be created only if there is at least one * matching pointcut - otherwise, original class will be returned. */ public T setForced(final boolean forced) { this.forced = forced; return _this(); }
/** * Specifies classloaders for loading created classes. * If classloader not specified, default one will be used. */ public T setClassLoader(final ClassLoader classLoader) { this.classLoader = classLoader; return _this(); }
/** * Specifies custom classname suffix to be added to the class name of created proxy. * Warning: when class name suffix is not used, full classname has to be * specified that differs from target class name. */ public T setClassNameSuffix(final String suffix) { this.classNameSuffix = suffix; return _this(); }
public T setDebugFolder(final File debugFolder) { this.debugFolder = debugFolder; return _this(); }
/** * Adds an aspect. */ public T withAspect(final A proxyAspect) { proxyAspectList.add(proxyAspect); return _this(); }
/** * Specifies the debug folder where all created classes will be * written to, for debugging purposes. */ public T setDebugFolder(final String debugFolder) { this.debugFolder = new File(debugFolder); return _this(); }
public T withAspects(final A... aspects) { Collections.addAll(proxyAspectList, aspects); return _this(); }