Examples of FallbackExceptionMarshaller


Examples of org.jboss.errai.marshalling.client.marshallers.FallbackExceptionMarshaller

    if (m == null && obj instanceof WrappedPortable) {
      className = ((WrappedPortable) obj).unwrap().getClass().getName();
      m = session.getMarshallerInstance(className);
    }
    if (m == null && obj instanceof Throwable) {
      m = new FallbackExceptionMarshaller();
    }
    // Attempt to marshal weld/hibernate javassist created objects.
    if (m == null && obj.getClass().getName().contains("_$$_javassist_")) {
      className = obj.getClass().getSuperclass().getName();
      m = session.getMarshallerInstance(className);
View Full Code Here

Examples of org.jboss.errai.marshalling.client.marshallers.FallbackExceptionMarshaller

    if (m == null && obj instanceof WrappedPortable) {
      className = ((WrappedPortable) obj).unwrap().getClass().getName();
      m = session.getMarshallerInstance(className);
    }
    if (m == null && obj instanceof Throwable) {
      m = new FallbackExceptionMarshaller();
    }
    if (m == null) {
      throw new RuntimeException("no marshalling definition available for type:" + className);
    }
    return m;
View Full Code Here

Examples of org.jboss.errai.marshalling.client.marshallers.FallbackExceptionMarshaller

    if (m == null && obj instanceof WrappedPortable) {
      className = ((WrappedPortable) obj).unwrap().getClass().getName();
      m = session.getMarshallerInstance(className);
    }
    if (m == null && obj instanceof Throwable) {
      m = new FallbackExceptionMarshaller();
    }
    // Attempt to marshal weld/hibernate javassist created objects.
    if (m == null && (obj.getClass().getName().contains("_$$_javassist_") || obj.getClass().getName().contains("_$$_jvst"))) {
      className = obj.getClass().getSuperclass().getName();
      m = session.getMarshallerInstance(className);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.