public final class ServerPlatformUtils
extends java.lang.Object
Constructor and Description |
---|
ServerPlatformUtils() |
Modifier and Type | Method and Description |
---|---|
static ServerPlatform |
createServerPlatform(DatabaseSession session,
java.lang.String platformClass,
java.lang.ClassLoader loader)
Create an instance of
ServerPlatform from parameters passed in. |
static java.lang.String |
detectServerPlatform(org.eclipse.persistence.internal.sessions.AbstractSession session) |
public static java.lang.String detectServerPlatform(org.eclipse.persistence.internal.sessions.AbstractSession session)
session
- public static ServerPlatform createServerPlatform(DatabaseSession session, java.lang.String platformClass, java.lang.ClassLoader loader)
ServerPlatform
from parameters passed in.session
- DatabaseSession
which will be passed to the constructor of ServerPlatform
platformClass
- fully qualified name of the ServerPlatform
implementation to initializeloader
- ClassLoader
to look up given platformClassServerPlatform
java.lang.NullPointerException
- if platformClass is nullServerPlatformException
- if supplied platformClass is not found or can not be initializedServerPlatformBase.ServerPlatformBase(DatabaseSession)