public class ERPApplicationSetup implements IApplicationSetup { //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Interface implementation //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @Override public void apply(IApplication pApplication) { ILauncher pLauncher = pApplication.getLauncher(); pLauncher.setParameter(ProjX.PARAM_LOGIN_CLASS, ERPLogin.class.getName()); pLauncher.setParameter(ProjX.PARAM_MENU_CLASS, ERPMenu.class.getName()); //never pLauncher.setParameter(ProjX.PARAM_LOGIN_USERNAME, null); pLauncher.setParameter(ProjX.PARAM_LOGIN_PASSWORD, null); pLauncher.setParameter(ProjX.PARAM_AUTHENTICATOR, ERPAuthenticator.class.getName()); //always direct! pLauncher.setParameter(ProjX.PARAM_CONNECTIONCLASS, DirectServerConnection.class.getName()); //login immediate! ((ProjX)pApplication).setUseLoginThread(false); } }