if(! hasAdaptiveAnnotation)
throw new IllegalStateException("No adaptive method on extension " + type.getName() + ", refuse to create the adaptive class!");
ClassGenerator cg = ClassGenerator.newInstance(classLoader);
cg.setClassName(type.getName() + "$Adpative");
cg.addInterface(type);
cg.addDefaultConstructor();
for (Method method : methods) {
Class<?> rt = method.getReturnType();
Class<?>[] pts = method.getParameterTypes();