org.eclipse.persistence.platform.server
Class CustomServerPlatform

java.lang.Object
  extended by org.eclipse.persistence.platform.server.ServerPlatformBase
      extended by org.eclipse.persistence.platform.server.CustomServerPlatform
All Implemented Interfaces:
ServerPlatform

public final class CustomServerPlatform
extends ServerPlatformBase

INTERNAL: This is the concrete subclass responsible for handling backward compatibility for 9.0.4. This platform overrides: getExternalTransactionControllerClass(): to use a user-specified controller class This platform adds: setExternalTransactionControllerClass(Class newClass): to allow the user to define the external transaction controller when the 904 sessions.xml defines an external-transaction-controller-class.


Field Summary
 
Fields inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
DEFAULT_SERVER_NAME_AND_VERSION
 
Constructor Summary
CustomServerPlatform(DatabaseSession newDatabaseSession)
          INTERNAL: Default Constructor: JTA is disabled until a transaction controller class is set.
 
Method Summary
 Class getExternalTransactionControllerClass()
          INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use in the DatabaseSession This is defined by the user via the 904 sessions.xml.
 
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase
clearStatementCache, configureProfiler, disableJTA, disableRuntimeServices, getDatabaseSession, getModuleName, getNewTempClassLoader, getServerLog, getServerNameAndVersion, initializeExternalTransactionController, isCMP, isJTAEnabled, isRuntimeServicesEnabled, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, shouldUseDriverManager, unregisterMBean, unwrapConnection, wasFailureCommunicationBased
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomServerPlatform

public CustomServerPlatform(DatabaseSession newDatabaseSession)
INTERNAL: Default Constructor: JTA is disabled until a transaction controller class is set. Runtime services are disabled.

Method Detail

getExternalTransactionControllerClass

public Class getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use in the DatabaseSession This is defined by the user via the 904 sessions.xml.

Specified by:
getExternalTransactionControllerClass in interface ServerPlatform
Specified by:
getExternalTransactionControllerClass in class ServerPlatformBase
Returns:
Class externalTransactionControllerClass
See Also:
JTATransactionController, ServerPlatformBase.isJTAEnabled(), ServerPlatformBase.disableJTA(), ServerPlatformBase.initializeExternalTransactionController()