org.eclipse.persistence.platform.server.jboss
Class JBossPlatform
java.lang.Object
org.eclipse.persistence.platform.server.ServerPlatformBase
org.eclipse.persistence.platform.server.jboss.JBossPlatform
- All Implemented Interfaces:
- ServerPlatform
public class JBossPlatform
- extends ServerPlatformBase
PUBLIC:
This is the concrete subclass responsible for representing JBoss-specific server behavior.
This platform overrides:
getExternalTransactionControllerClass(): to use an JBoss-specific controller class
Constructor Summary |
JBossPlatform(DatabaseSession newDatabaseSession)
INTERNAL:
Default Constructor: All behavior for the default constructor is inherited |
Method Summary |
Class |
getExternalTransactionControllerClass()
INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use
for JBoss. |
org.eclipse.persistence.internal.helper.JPAClassLoaderHolder |
getNewTempClassLoader(javax.persistence.spi.PersistenceUnitInfo puInfo)
INTERNAL:
JIRA EJBTHREE-572 requires that we use the real classLoader in place of the getNewTempClassLoader(). |
Methods inherited from class org.eclipse.persistence.platform.server.ServerPlatformBase |
clearStatementCache, configureProfiler, disableJTA, disableRuntimeServices, getDatabaseSession, getModuleName, getServerLog, getServerNameAndVersion, initializeExternalTransactionController, isCMP, isJTAEnabled, isRuntimeServicesEnabled, launchContainerRunnable, registerMBean, serverSpecificRegisterMBean, serverSpecificUnregisterMBean, setExternalTransactionControllerClass, setIsCMP, shouldUseDriverManager, unregisterMBean, unwrapConnection, wasFailureCommunicationBased |
JBossPlatform
public JBossPlatform(DatabaseSession newDatabaseSession)
- INTERNAL:
Default Constructor: All behavior for the default constructor is inherited
getExternalTransactionControllerClass
public Class getExternalTransactionControllerClass()
- INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use
for JBoss. This is read-only.
- Specified by:
getExternalTransactionControllerClass
in interface ServerPlatform
- Specified by:
getExternalTransactionControllerClass
in class ServerPlatformBase
- Returns:
- Class externalTransactionControllerClass
- See Also:
JTATransactionController
,
ServerPlatformBase.isJTAEnabled()
,
ServerPlatformBase.disableJTA()
,
ServerPlatformBase.initializeExternalTransactionController()
getNewTempClassLoader
public org.eclipse.persistence.internal.helper.JPAClassLoaderHolder getNewTempClassLoader(javax.persistence.spi.PersistenceUnitInfo puInfo)
- INTERNAL:
JIRA EJBTHREE-572 requires that we use the real classLoader in place of the getNewTempClassLoader().
The override code should stay in place until the UCL3 loader does not throw a NPE on loadClass()
- Specified by:
getNewTempClassLoader
in interface ServerPlatform
- Overrides:
getNewTempClassLoader
in class ServerPlatformBase
- Parameters:
puInfo
- - the persistence unit info
- Returns:
- ClassLoaderHolder - a composite object containing the classLoader and the flag
that is true if the classLoader returned is temporary
- See Also:
org.eclipse.persistence.internal.helper.ClassLoaderHolder