Package org.jboss.errai.codegen.framework.exception

Examples of org.jboss.errai.codegen.framework.exception.UnproxyableClassException


 
  public static final String PROXY_BIND_METHOD = "__$setProxiedInstance$";
 
  public static BuildMetaClass makeProxy(String proxyClassName, MetaClass toProxy) {
    if (toProxy.isFinal()) {
      throw new UnproxyableClassException(toProxy.getFullyQualifiedName()
              + " is an unproxiable class because it is final");
    }
    if (!toProxy.isDefaultInstantiable()) {
      throw new UnproxyableClassException(toProxy.getFullyQualifiedName() + " must have a default no-arg constructor");
    }


    ClassStructureBuilder builder = ClassBuilder.define(proxyClassName, toProxy).publicScope()
    //        .implementsInterface(parameterizedAs(Proxy.class, typeParametersOf(toProxy)))
View Full Code Here

TOP

Related Classes of org.jboss.errai.codegen.framework.exception.UnproxyableClassException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.