Project Wonder 5.0

er.cayenne
Class CayenneApplication

java.lang.Object
  extended by com.webobjects.appserver.WOApplication
      extended by er.extensions.appserver.ajax.ERXAjaxApplication
          extended by er.extensions.appserver.ERXApplication
              extended by er.cayenne.CayenneApplication
All Implemented Interfaces:
WOApplicationMBean, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, ERXGracefulShutdown.GracefulApplication

public abstract class CayenneApplication
extends ERXApplication

Adds Cayenne support to WOApplication, which can be used instead of EOF.

Author:
john

Nested Class Summary
 
Nested classes/interfaces inherited from class er.extensions.appserver.ERXApplication
ERXApplication.JarChecker, ERXApplication.Loader
 
Nested classes/interfaces inherited from class er.extensions.appserver.ajax.ERXAjaxApplication
ERXAjaxApplication.ERXAjaxResponseDelegate
 
Nested classes/interfaces inherited from class com.webobjects.appserver.WOApplication
WOApplication._EventLoggingEnabler, WOApplication.Event, WOApplication.TimeoutTask
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
 
Field Summary
 
Fields inherited from class er.extensions.appserver.ERXApplication
_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, useComponentActionRedirection
 
Fields inherited from class er.extensions.appserver.ajax.ERXAjaxApplication
KEY_AJAX_SUBMIT_BUTTON, KEY_PARTIAL_FORM_SENDER_ID, KEY_REPLACED, KEY_UPDATE_CONTAINER_ID
 
Fields inherited from class com.webobjects.appserver.WOApplication
_adminRequestHandlerKey, _cgiAdaptorURLParsed, _classPathURLs, _launchServices, _terminating, _TheLastApplicationAccessTime, _unsetHost, _wasMainInvoked, ApplicationDidDispatchRequestNotification, ApplicationDidFinishLaunchingNotification, ApplicationWillDispatchRequestNotification, ApplicationWillFinishLaunchingNotification, CGIAdaptorURLProperty, DirectoryAliasProperty, DocumentRootProperty
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
NullValue
 
Constructor Summary
CayenneApplication()
           
 
Method Summary
protected abstract  org.apache.cayenne.configuration.server.ServerRuntime createRuntime()
          Subclasses need to override this and create and return the runtime by doing something like: return new ServerRuntime("cayenne-MyDomain.xml");
 WOResponse dispatchRequest(WORequest request)
          Overridden to allow for redirected responses and null the thread local storage.
 org.apache.cayenne.configuration.server.ServerRuntime getRuntime()
           
 org.apache.cayenne.ObjectContext newObjectContext()
          New ObjectContext instances can be obtained by calling this method from anywhere in the application.
 void terminate()
          Sends out a ApplicationWillTerminateNotification before actually starting to terminate.
 
Methods inherited from class er.extensions.appserver.ERXApplication
_addAdditionalAdaptors, _componentDefinition, _createRequest, _debugValueForDeclarationNamed, _defaultIsDevelopmentMode, _endRequest, _newLocationForRequest, _rewriteURL, _setSslHost, _setSslPort, _startRequest, additionalAdaptors, appendToResponse, checkMemory, checkMemory, clearDebugEnabledForAllComponents, configureStatisticsLogging, constants, createContextForRequest, createRequest, createRequest, createResourceManager, createResponseInContext, createSessionForRequest, debugEnabledForComponent, delayedRequestHandler, didCreateApplication, didFinishLaunching, didFinishLaunching, directConnectURL, dispatchRequestImmediately, erAjaxRequestHandlerKey, erxApplication, extraInformationForExceptionInContext, finishInitialization, finishInitialization, formatterFactory, genericHandleException, gracefulTerminate, handleActionRequestError, handleException, handlePotentiallyFatalException, installPatches, instantiatePage, invokeAction, isDevelopmentMode, isDevelopmentModeSafe, isInRequest, isRefusingNewSessions, isStreamingRequestHandlerKey, isWO54, killInstance, logSetValueForDeclarationNamed, logTakeValueForDeclarationNamed, main, migrationsDidRun, migrationsWillRun, migrator, name, nameSuffix, pageWithName, pageWithName, rawName, refuseNewSessions, refuseSessionsOnStarvedMemory, registerStreamingRequestHandlerKey, reportException, responseCompressionEnabled, responseCompressionTypes, restoreSessionWithID, rewriteDirectConnectURL, run, saveSessionForContext, sessionTimeOutInMinutes, setDebugEnabledForComponent, setDefaultEncoding, setup, sslEnabled, sslHost, sslPort, startRefusingSessions, traceOpenEditingContextLocks, useComponentActionRedirection, useEditingContextUnlocker, useSessionStoreDeadlockDetection
 
Methods inherited from class er.extensions.appserver.ajax.ERXAjaxApplication
ajaxSubmitButtonName, cleanUpHeaders, forceStorePage, isAjaxReplacement, isAjaxRequest, isAjaxSubmit, isAjaxUpdate, partialFormSenderID, setForceStorePage, setResponseDelegate, shouldIgnoreResults, shouldNotStorePage, shouldNotStorePage, takeValuesFromRequest
 
Methods inherited from class com.webobjects.appserver.WOApplication
_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, adaptorExtensions, adaptorName, adaptorPath, adaptors, adaptorsDispatchRequestsConcurrently, adaptorWithName, 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, main, 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, workerThreadCountMin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CayenneApplication

public CayenneApplication()
Method Detail

createRuntime

protected abstract org.apache.cayenne.configuration.server.ServerRuntime createRuntime()
Subclasses need to override this and create and return the runtime by doing something like: return new ServerRuntime("cayenne-MyDomain.xml");

Returns:

dispatchRequest

public WOResponse dispatchRequest(WORequest request)
Description copied from class: ERXApplication
Overridden to allow for redirected responses and null the thread local storage.

Overrides:
dispatchRequest in class ERXApplication
Parameters:
request - object
Returns:
response

terminate

public void terminate()
Description copied from class: ERXApplication
Sends out a ApplicationWillTerminateNotification before actually starting to terminate.

Overrides:
terminate in class ERXApplication

getRuntime

public org.apache.cayenne.configuration.server.ServerRuntime getRuntime()

newObjectContext

public org.apache.cayenne.ObjectContext newObjectContext()
New ObjectContext instances can be obtained by calling this method from anywhere in the application.

Returns:

Last updated: Wed, Feb 22, 2012 • 07:00 AM EST

Copyright © 2002 – 2011 Project Wonder.