Package com.caucho.config.gen

Examples of com.caucho.config.gen.View


    out
        .println("  throws IllegalAccessException, java.lang.reflect.InvocationTargetException");
    out.println("{");
    out.pushDepth();

    View objectView = null;

    for (View view : getViews()) {
      if (view instanceof StatelessView) {
        objectView = view;
        break;
      }
    }

    if (objectView != null) {
      out.print(beanClass + " bean = ");
      objectView.generateNewInstance(out);
      out.println(";");
      out.println("method.invoke(bean, timer);");
      objectView.generateFreeInstance(out, "bean");
    }

    out.popDepth();
    out.println("}");

    out.println();
    out
        .println("public void __caucho_timeout_callback(java.lang.reflect.Method method)");
    out
        .println("  throws IllegalAccessException, java.lang.reflect.InvocationTargetException");
    out.println("{");
    out.pushDepth();

    if (objectView != null) {
      out.print(beanClass + " bean = ");
      objectView.generateNewInstance(out);
      out.println(";");
      out.println("method.invoke(bean);");
      objectView.generateFreeInstance(out, "bean");
    }

    out.popDepth();
    out.println("}");
  }
View Full Code Here

TOP

Related Classes of com.caucho.config.gen.View

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.