MethodFilter filter) { return enhanceClass(cls, interfaces, loader, adapt(filter));
final CallbackFilter filter) { if (filter == null) { throw new IllegalArgumentException("CallbackFilter is required for enhanceClass"); } final Class base = (cls == null) ? Object.class : cls; return (Class) cache.get(loader, KEY_FACTORY.newInstance(base, interfaces, null, filter), new FactoryCache.ClassOnlyCallback() { public BasicCodeGenerator newGenerator() { return new EnhancerGenerator(base, interfaces, null, filter, null); } });
    public static Class enhanceClass(Class cls,                                     Class[] interfaces,                                     ClassLoader loader,                                     MethodFilter filter) {        return enhanceClass(cls, interfaces, loader, adapt(filter));    }