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("}");
}