Package net.sf.chellow.billing

Examples of net.sf.chellow.billing.NonCoreContract


            throw new SQLException(
                "The transaction isolation level isn't serializable.");
          }
        }
      });
      NonCoreContract startupContract = NonCoreContract
          .getNonCoreContract("startup");
      List<Object> args = new ArrayList<Object>();
      args.add(context);
      startupContract.callFunction("on_start_up", args.toArray());
      Properties postProps = new Properties();
      PythonInterpreter.initialize(System.getProperties(), postProps,
          new String[] {});

      context.setAttribute(CONTEXT_REQUEST_MAP,
View Full Code Here


  }

  public void contextDestroyed(ServletContextEvent event) {
    try {
      ServletContext context = event.getServletContext();
      NonCoreContract startupContract = NonCoreContract
          .getNonCoreContract("shutdown");
      List<Object> args = new ArrayList<Object>();
      args.add(context);
      startupContract.callFunction("on_shut_down", args.toArray());
      context.removeAttribute(CONTEXT_REQUEST_MAP);
    } catch (Throwable e) {
      Debug.print("Problem. " + HttpException.getStackTraceString(e));
      throw new RuntimeException(e);
    }
View Full Code Here

TOP

Related Classes of net.sf.chellow.billing.NonCoreContract

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.