public class ERXMainRunner extends ERXApplication
-mainClass MyMainClass
or
-mainClass MyMainClass -mainMethod main2
And it will run an application, call the main method you passed in, and then System.exit. Provide an empty mainClass string if you handle everything in your startup.
ERXApplication.JarChecker, ERXApplication.LoaderERXAjaxApplication.ERXAjaxResponseDelegatecom.webobjects.appserver.WOApplication._EventLoggingEnabler, com.webobjects.appserver.WOApplication.Event, com.webobjects.appserver.WOApplication.TimeoutTaskcom.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utilitycom.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor| Modifier and Type | Field and Description |
|---|---|
static String[] |
_args |
_formatterFactory, _initializedAdaptors, _killTimer, _memoryLowThreshold, _memoryStarvedThreshold, _replaceApplicationPathPattern, _replaceApplicationPathReplace, _responseCompressionEnabled, _responseCompressionTypes, _sslHost, _sslPort, _streamingRequestHandlerKeys, _useSessionStoreDeadlockDetection, AllBundlesLoadedNotification, ApplicationDidCreateNotification, ApplicationDidFinishInitializationNotification, ApplicationWillTerminateNotification, AppShouldExitOnOutOfMemoryError, log, LowMemoryNotification, LowMemoryResolvedNotification, propertiesFromArgv, requestHandlingLog, startupLog, StarvedMemoryNotification, StarvedMemoryResolvedNotification, statsLog, useComponentActionRedirectionKEY_AJAX_SUBMIT_BUTTON, KEY_PARTIAL_FORM_SENDER_ID, KEY_REPLACED, KEY_UPDATE_CONTAINER_ID_adminRequestHandlerKey, _cgiAdaptorURLParsed, _classPathURLs, _launchServices, _terminating, _TheLastApplicationAccessTime, _unsetHost, _wasMainInvoked, ApplicationDidDispatchRequestNotification, ApplicationDidFinishLaunchingNotification, ApplicationWillDispatchRequestNotification, ApplicationWillFinishLaunchingNotification, CGIAdaptorURLProperty, DirectoryAliasProperty, DocumentRootProperty| Constructor and Description |
|---|
ERXMainRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
didFinishLaunching()
Called when the application posts
WOApplication.ApplicationDidFinishLaunchingNotification. |
static void |
main(String[] args) |
_addAdditionalAdaptors, _componentDefinition, _debugValueForDeclarationNamed, _defaultIsDevelopmentMode, _endRequest, _newLocationForRequest, _rewriteResourceURL, _rewriteURL, _setSslHost, _setSslPort, _startRequest, adaptorExtensions, adaptorWithName, addBalancerRouteCookie, addBalancerRouteCookieByNotification, additionalAdaptors, appendToResponse, checkMemory, checkMemory, clearDebugEnabledForAllComponents, configureStatisticsLogging, constants, createContextForRequest, createRequest, createResourceManager, createResponseInContext, createSessionForRequest, debugEnabledForComponent, delayedRequestHandler, didCreateApplication, didFinishLaunching, directConnectURL, dispatchRequest, dispatchRequestImmediately, enableERXShutdownHook, erAjaxRequestHandlerKey, erxApplication, extraInformationForExceptionInContext, finishInitialization, finishInitialization, formatterFactory, genericHandleException, gracefulTerminate, handleActionRequestError, handleException, handlePotentiallyFatalException, installPatches, instantiatePage, invokeAction, isDeployedAsServlet, isDevelopmentMode, isDevelopmentModeSafe, isInRequest, isRefusingNewSessions, isStreamingRequestHandlerKey, killInstance, logSetValueForDeclarationNamed, logTakeValueForDeclarationNamed, main, migrationsDidRun, migrationsWillRun, migrator, name, nameSuffix, pageWithName, pageWithName, publicHost, rawName, refuseNewSessions, refuseSessionsOnStarvedMemory, registerStreamingRequestHandlerKey, reportException, responseCompressionEnabled, responseCompressionTypes, restoreSessionWithID, rewriteDirectConnectURL, run, saveSessionForContext, sessionTimeOutInMinutes, setDebugEnabledForComponent, setDefaultEncoding, setup, sslEnabled, sslHost, sslPort, startRefusingSessions, terminate, useComponentActionRedirection, useSessionStoreDeadlockDetectionajaxSubmitButtonName, cleanUpHeaders, enableShouldNotStorePage, forceStorePage, isAjaxReplacement, isAjaxRequest, isAjaxSubmit, isAjaxUpdate, partialFormSenderID, setForceStorePage, setResponseDelegate, shouldIgnoreResults, shouldNotStorePage, shouldNotStorePage, takeValuesFromRequest_addToExpectedLanguages, _allowsCacheControlHeader, _checksForSpecialHeaders, _componentDefinitionFromClassNamed, _debugString, _discountTerminatedSession, _expectedLanguages, _finishInitializingSession, _initializeSessionInContext, _isDebuggingEnabled, _isDomesticSupportedDevelopmentPlatform, _isForeignSupportedDevelopmentPlatform, _isPageRecreationEnabled, _isSupportedDevelopmentPlatform, _lockDefaultEditingContext, _openInitialURL, _parseCGIAdaptorURL, _quitTimer, _rapidTurnaroundActiveForAnyProject, _removeComponentDefinitionCacheContents, _runLoop, _sessionClass, _setAllowsCacheControlHeader, _setChecksForSpecialHeaders, _setHost, _setHostAddress, _setLifebeatDestinationPort, _setLockDefaultEditingContext, _terminateFromMonitor, _terminateOrResetTimer, activeSessionsCount, adaptor, adaptorName, adaptorPath, adaptors, adaptorsDispatchRequestsConcurrently, ajaxRequestHandlerKey, allowsConcurrentRequestHandling, application, applicationBaseURL, applicationExtension, associationFactory, associationFactoryRegistry, autoOpenClientApplication, autoOpenInBrowser, awake, baseURL, canAccessFieldsDirectly, cgiAdaptorURL, combinedComponentPathURL, componentRequestHandlerKey, contextClassName, createDefaultAssociationFactoryRegistry, createDefaultNamespaceProvider, debugString, defaultAdaptor, defaultRequestHandler, defaultRequestHandlerClassName, defaultUndoStackLimit, directActionRequestHandlerKey, documentRoot, dynamicElementWithName, frameworksBaseURL, getAdaptorsDispatchRequestsConcurrently, getAdditionalAdaptors, getAgentID, getAllowsConcurrentRequestHandling, getApplicationBaseURL, getApplicationExtension, getAutoOpenClientApplication, getBaseURL, getCGIAdaptorURL, getClassPaths, getComponentRequestHandlerKey, getDefaultAdaptor, getDefaultUndoStackLimit, getDirectConnectURL, getFrameworkVersions, getHost, getHostAddress, getIncludeCommentsInResponses, getIsCachingEnabled, getIsMonitorEnabled, getIsPageRefreshOnBacktrackEnabled, getIsRefusingNewSessions, getIsTerminating, getJMXDomain, getLifebeatDestinationPort, getLifebeatInterval, getListenQueueSize, getMaxSocketIdleTime, getMBeanServer, getMinimumActiveSessionsCount, getName, getOutputPath, getPageCacheSize, getPageFragmentCacheSize, getPort, getServletConnectURL, getSessionTimeOut, getTimeOut, getWebObjectsVersion, getWebserverConnectURL, getWorkerThreadCountMax, getWorkerThreadCountMin, handleMalformedCookieString, handlePageRestorationErrorInContext, handleQueryWithUnboundKey, handlerForRequest, handleSessionCreationErrorInContext, handleSessionRestorationErrorInContext, handleTakeValueForUnboundKey, host, hostAddress, includeCommentsInResponses, instanceIdKey, isCachingEnabled, isConcurrentRequestHandlingEnabled, isDebuggingEnabled, isDirectConnectEnabled, isMonitorEnabled, isPageRefreshOnBacktrackEnabled, isTerminating, launchArguments, licensedRequestLimit, licensedRequestWindow, licensingAllowsMultipleInstances, licensingAllowsMultipleThreads, lifebeatDestinationPort, lifebeatEnabled, lifebeatInterval, listenQueueSize, loadFrameworks, lock, logString, maxSocketIdleTime, minimumActiveSessionsCount, monitorEnabled, monitorHost, monitoringEnabled, namespaceProvider, newDynamicURL, newDynamicURL, number, outputPath, pageCacheSize, pageFragmentCacheSize, pageWithName, path, permanentPageCacheSize, port, primeApplication, primeApplication, printsHTMLParserDiagnostics, projectSearchPath, recordingPath, registeredRequestHandlerKeys, registerMBean, registerMBean, registerRequestHandler, removeRequestHandlerForKey, requestHandlerForKey, requestHandlingLock, resourceManager, resourceRequestHandlerKey, responseForComponentWithName, responseForDirectActionWithNameAndClass, servletConnectURL, sessionIdKey, sessionStore, sessionStoreClassName, sessionTimeOut, setAdaptor, setAdditionalAdaptors, setAllowsConcurrentRequestHandling, setApplicationBaseURL, setAutoOpenClientApplication, setAutoOpenInBrowser, setCachingEnabled, setCGIAdaptorURL, setComponentRequestHandlerKey, setContextClassName, setDefaultRequestHandler, setDefaultUndoStackLimit, setDirectActionRequestHandlerKey, setDirectConnectEnabled, setFrameworksBaseURL, setIncludeCommentsInResponses, setJMXDomain, setListenQueueSize, setLoadFrameworks, setMaxSocketIdleTime, setMinimumActiveSessionsCount, setMonitorEnabled, setMonitorHost, setNamespaceProvider, setPageCacheSize, setPageFragmentCacheSize, setPageRefreshOnBacktrackEnabled, setPermanentPageCacheSize, setPort, setPrintsHTMLParserDiagnostics, setProjectSearchPath, setRecordingPath, setResourceManager, setResourceRequestHandlerKey, setSessionStore, setSessionStoreClassName, setSessionTimeOut, setSMTPHost, setSocketCacheSize, setSocketMonitorSleepTime, setStatisticsStore, setTimeOut, setWebServiceRequestHandlerKey, setWorkerThreadCount, setWorkerThreadCountMax, setWorkerThreadCountMin, sharedEditingContext, shouldRestoreSessionOnCleanEntry, sleep, SMTPHost, socketCacheSize, socketMonitorSleepTime, statistics, statisticsStore, streamActionRequestHandlerKey, takeValueForKey, takeValueForKeyPath, terminateAfterTimeInterval, timeOut, toString, unableToSetNullForKey, unlock, unregisterMBean, validationFailedWithException, valueForKey, valueForKeyPath, wasMainInvoked, webserverConnectURL, webServiceRequestHandlerKey, workerThreadCount, workerThreadCountMax, workerThreadCountMinpublic static String[] _args
public static void main(String[] args)
public void didFinishLaunching()
ERXApplicationWOApplication.ApplicationDidFinishLaunchingNotification.
Override this to perform application specific tasks after the application
has been initialized. THis is a good spot to perform batch application
tasks.didFinishLaunching in class ERXApplicationCopyright © 2002 – 2020 Project Wonder.