JUICe

com.lafros.juice.app
Class TheApplication

java.lang.Object
  extended by com.lafros.juice.app.TheApplication

public class TheApplication
extends Object

runs the specified IApp as an application. This is typically achieved as follows:

public class App extends AbstractApp {
  public static void main(final String[] args) {
    final IApp app = new App();
    TheApplication.start(app, args);
  }

  public void init(final AppContext context) {
    ...

Version:
$Id: TheApplication.java 2745 2008-02-09 09:23:47Z rob $
Author:
Rob Dickens

Method Summary
static void loadJUICeResources()
          may be called before installing a security manager.
static void start(IApp app, String[] args)
          runs app as an application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadJUICeResources

public static void loadJUICeResources()
may be called before installing a security manager. Not required when using Java Web Start or when running as an applet. Does nothing if already start(IApp, String[])ed.


start

public static void start(IApp app,
                         String[] args)
runs app as an application. Thread-safe, but subsequent invocations do nothing.

Parameters:
args - as passed to the public static void main(String[] args)

JUICe

Copyright © 2001-2008 Latterfrosken Software Development Limited. All Rights Reserved.