Top Description Fields Constructors Methods
org.eclipse.persistence.internal.sessions.factories

public Class SessionsFactory

extends Object
Class Inheritance
Imports
java.lang.reflect.Constructor, java.security.AccessController, .PrivilegedActionException, java.util.ArrayList, .Enumeration, .HashMap, .Iterator, .List, .Map, org.eclipse.persistence.config.SessionCustomizer, org.eclipse.persistence.eis.EISConnectionSpec, .EISLogin, org.eclipse.persistence.exceptions.ExceptionHandler, .SessionLoaderException, .ValidationException, org.eclipse.persistence.internal.databaseaccess.DatabasePlatform, .DatasourcePlatform, .Platform, org.eclipse.persistence.internal.helper.ConversionManager, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, .PrivilegedGetConstructorFor, .PrivilegedInvokeConstructor, .PrivilegedNewInstanceFromClass, org.eclipse.persistence.internal.sessions.AbstractSession, .DatabaseSessionImpl, org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs, org.eclipse.persistence.internal.sessions.factories.model.event.SessionEventManagerConfig, org.eclipse.persistence.internal.sessions.factories.model.log.DefaultSessionLogConfig, .JavaLogConfig, .LogConfig, .ServerLogConfig, org.eclipse.persistence.internal.sessions.factories.model.login.DatabaseLoginConfig, .EISLoginConfig, .LoginConfig, .StructConverterConfig, .XMLLoginConfig, org.eclipse.persistence.internal.sessions.factories.model.platform.CustomServerPlatformConfig, .ServerPlatformConfig, org.eclipse.persistence.internal.sessions.factories.model.pool.ConnectionPolicyConfig, .ConnectionPoolConfig, .PoolsConfig, .ReadConnectionPoolConfig, org.eclipse.persistence.internal.sessions.factories.model.project.ProjectConfig, org.eclipse.persistence.internal.sessions.factories.model.property.PropertyConfig, org.eclipse.persistence.internal.sessions.factories.model.rcm.RemoteCommandManagerConfig, org.eclipse.persistence.internal.sessions.factories.model.rcm.command.CommandsConfig, org.eclipse.persistence.internal.sessions.factories.model.sequencing.DefaultSequenceConfig, .NativeSequenceConfig, .SequenceConfig, .TableSequenceConfig, .UnaryTableSequenceConfig, .XMLFileSequenceConfig, org.eclipse.persistence.internal.sessions.factories.model.session.DatabaseSessionConfig, .ServerSessionConfig, .SessionBrokerConfig, .SessionConfig, org.eclipse.persistence.internal.sessions.factories.model.transport.JMSPublishingTransportManagerConfig, .JMSTopicTransportManagerConfig, .RMIIIOPTransportManagerConfig, .RMITransportManagerConfig, .SunCORBATransportManagerConfig, .TransportManagerConfig, .UserDefinedTransportManagerConfig, org.eclipse.persistence.internal.sessions.factories.model.transport.discovery.DiscoveryConfig, org.eclipse.persistence.internal.sessions.factories.model.transport.naming.JNDINamingServiceConfig, .RMIRegistryNamingServiceConfig, org.eclipse.persistence.logging.DefaultSessionLog, .SessionLog, org.eclipse.persistence.oxm.XMLLogin, org.eclipse.persistence.platform.database.converters.StructConverter, org.eclipse.persistence.platform.server.NoServerPlatform, .ServerPlatform, .ServerPlatformUtils, org.eclipse.persistence.sequencing.DefaultSequence, .NativeSequence, .Sequence, .TableSequence, .UnaryTableSequence, org.eclipse.persistence.sessions.DatabaseLogin, .DatasourceLogin, .ExternalTransactionController, .JNDIConnector, .Login, .Project, .Session, .SessionEventListener, org.eclipse.persistence.sessions.broker.SessionBroker, org.eclipse.persistence.sessions.coordination.DiscoveryManager, .RemoteCommandManager, .TransportManager, org.eclipse.persistence.sessions.coordination.jms.JMSPublishingTransportManager, .JMSTopicTransportManager, org.eclipse.persistence.sessions.coordination.rmi.RMITransportManager, org.eclipse.persistence.sessions.factories.XMLProjectReader, .XMLSessionConfigLoader, org.eclipse.persistence.sessions.server.ConnectionPolicy, .ConnectionPool, .ReadConnectionPool, .ServerSession, org.eclipse.persistence.tools.profiler.PerformanceProfiler

INTERNAL: Builds EclipseLink Sessions from the XML Session Config model. Model classes that are not built, are processed only.
Author
Guy Pelletier
Version
1.0

Field Summary

Modifier and TypeField and Description
protected ClassLoader
protected Map<String, Integer>
protected Map<String, Session>

Constructor Summary

AccessConstructor and Description
public
SessionsFactory()

INTERNAL:

Method Summary

Modifier and TypeMethod and Description
protected ConnectionPool
buildConnectionPoolConfig(ConnectionPoolConfig poolConfig, ServerSession serverSession)

INTERNAL: Build a connection pool from the config to store on the server session.

protected ServerPlatform
protected Login
buildDatabaseLoginConfig(DatabaseLoginConfig databaseLoginConfig)

INTERNAL: Build a DatabaseLogin for the given Session Wrapped by the getLogin() call, therefore, config can't be null at this point.

protected AbstractSession
buildDatabaseSessionConfig(DatabaseSessionConfig databaseSessionConfig)

INTERNAL: Wrapped by the getSession() call, therefore, config can't be null at this point.

protected SessionLog
buildDefaultSessionLogConfig(DefaultSessionLogConfig defaultSessionLogConfig)

INTERNAL: Wrapped by the getSessionLog() call, therefore, config can't be null at this point.

protected Login
buildEISLoginConfig(EISLoginConfig eisLoginConfig)

INTERNAL: Wrapped by the getLogin() call, therefore, config can't be null at this point.

protected SessionLog
buildJavaLogConfig(JavaLogConfig javaLogConfig, AbstractSession session)

INTERNAL:

protected void
protected void
protected Login
buildLogin(LoginConfig loginConfig)

INTERNAL: Build the correct login based on the login config type

protected ConnectionPool
buildReadConnectionPoolConfig(ReadConnectionPoolConfig poolConfig, ServerSession serverSession)

INTERNAL: Build a read connection pool from the config to store on the server session.

protected void
protected void
buildRMIIIOPTransportManagerConfig(RMIIIOPTransportManagerConfig tmConfig, RemoteCommandManager rcm)

INTERNAL: Left this in for now since in the future we may add more IIOP specific configurations?

protected void
protected Sequence
buildSequence(SequenceConfig sequenceConfig)

INTERNAL: Builds a Sequence from the given SequenceConfig.

protected SessionLog
buildServerLogConfig(ServerLogConfig serverLogConfig, AbstractSession session)

INTERNAL:

protected ServerPlatform
buildServerPlatformConfig(ServerPlatformConfig platformConfig, DatabaseSessionImpl session)

INTERNAL: Build the appropriate server platform

protected AbstractSession
buildServerSessionConfig(ServerSessionConfig serverSessionConfig)

INTERNAL: Builds a server server from the given ServerSessionConfig.

protected AbstractSession
buildSession(SessionConfig sessionConfig)

INTERNAL: Build the correct session based on the session config type

protected SessionBroker
buildSessionBrokerConfig(SessionBrokerConfig sessionBrokerConfig)

INTERNAL: Builds a session broker from the given SessionBrokerConfig.

public Map<String, Session>

Returns:

EclipseLink sessions
buildSessionConfigs
(SessionConfigs
object returned from an OX read in the XMLSessionConfigLoader
eclipseLinkSessions
,
ClassLoader
class loader used in the XMLSessionConfigLoader
classLoader
)

INTERNAL: To build EclipseLink sessions, users must call this method with a SessionConfigs object returned from an OX read in the XMLSessionConfigLoader.

protected SessionLog
buildSessionLog(LogConfig logConfig, AbstractSession session)

INTERNAL:

protected void
buildSunCORBATransportManagerConfig(SunCORBATransportManagerConfig tmConfig, RemoteCommandManager rcm)

INTERNAL: Builds a Sun CORBA transport manager with the given remote command manager

protected void
protected void
protected Login
buildXMLLoginConfig(XMLLoginConfig xmlLoginConfig)

INTERNAL: Wrapped by the getLogin() call, therefore, config can't be null at this point.

protected DatabaseSessionImpl
createSession(DatabaseSessionConfig sessionConfig, Login login)

INTERNAL: Return a DatabaseSession object from it's config object using either the project classes or project XML files.

protected DatabaseSessionImpl
getSession(SessionConfig sessionConfig, Project project)

INTERNAL: Return the correct session type from the sessionConfig

protected Project
loadProjectConfig(ProjectConfig projectConfig)

INTERNAL: Load a projectConfig from the session.xml file.

protected void
prepareProjectLogin(Project project, Login login)

INTERNAL: Return the correct session type from the sessionConfig

protected void
protected void
processConnectionPolicyConfig(ConnectionPolicyConfig connectionPolicyConfig, ServerSession serverSession)

INTERNAL: Process the common elements from a ConnectionPoolConfig

protected void
processConnectionPoolConfig(ConnectionPoolConfig poolConfig, ConnectionPool connectionPool, AbstractSession session)

INTERNAL: Process the common elements from a ConnectionPoolConfig

protected void
processDatabaseSessionConfig(DatabaseSessionConfig sessionConfig, AbstractSession session)

INTERNAL Process a DatabaseSessionConfig object.

protected void
processDiscoveryConfig(DiscoveryConfig discoveryConfig, DiscoveryManager discoveryManager)

INTERNAL:

protected void
protected void
protected void
processLogConfig(LogConfig logConfig, SessionLog log)

INTERNAL:

protected void
processLoginConfig(LoginConfig loginConfig, DatasourceLogin login)

INTERNAL: Process the common elements of a Login.

protected void
processPoolsConfig(PoolsConfig poolsConfig, ServerSession serverSession)

INTERNAL: Process the PoolsConfig object.

protected void
protected void
processSequenceConnectionPoolConfig(ConnectionPoolConfig poolConfig, ServerSession serverSession)

INTERNAL: Process a SequenceConnectionPoolConfig object.

protected void
processServerPlatformConfig(ServerPlatformConfig platformConfig, ServerPlatform platform)

INTERNAL: Process a ServerPlatformConfig object.

protected void
processSessionConfig(SessionConfig sessionConfig, AbstractSession session)

INTERNAL: Process the common elements from a SessionConfig.

protected void
processSessionCustomizer(SessionConfig sessionConfig, AbstractSession session)

INTERNAL: Process the user inputed session customizer class.

protected void
processSessionEventManagerConfig(SessionEventManagerConfig sessionEventManagerConfig, AbstractSession session)

INTERNAL:

protected void
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_classLoaderback to summary
protected ClassLoader m_classLoader
m_logLevelsback to summary
protected Map<String, Integer> m_logLevels
m_sessionsback to summary
protected Map<String, Session> m_sessions

Constructor Detail

SessionsFactoryback to summary
public SessionsFactory()

INTERNAL:

Method Detail

buildConnectionPoolConfigback to summary
protected ConnectionPool buildConnectionPoolConfig(ConnectionPoolConfig poolConfig, ServerSession serverSession)

INTERNAL: Build a connection pool from the config to store on the server session.

buildCustomServerPlatformConfigback to summary
protected ServerPlatform buildCustomServerPlatformConfig(CustomServerPlatformConfig platformConfig, DatabaseSessionImpl session)

INTERNAL:

Annotations
@SuppressWarnings:unchecked
buildDatabaseLoginConfigback to summary
protected Login buildDatabaseLoginConfig(DatabaseLoginConfig databaseLoginConfig)

INTERNAL: Build a DatabaseLogin for the given Session Wrapped by the getLogin() call, therefore, config can't be null at this point.

buildDatabaseSessionConfigback to summary
protected AbstractSession buildDatabaseSessionConfig(DatabaseSessionConfig databaseSessionConfig)

INTERNAL: Wrapped by the getSession() call, therefore, config can't be null at this point.

buildDefaultSessionLogConfigback to summary
protected SessionLog buildDefaultSessionLogConfig(DefaultSessionLogConfig defaultSessionLogConfig)

INTERNAL: Wrapped by the getSessionLog() call, therefore, config can't be null at this point.

buildEISLoginConfigback to summary
protected Login buildEISLoginConfig(EISLoginConfig eisLoginConfig)

INTERNAL: Wrapped by the getLogin() call, therefore, config can't be null at this point.

buildJavaLogConfigback to summary
protected SessionLog buildJavaLogConfig(JavaLogConfig javaLogConfig, AbstractSession session)

INTERNAL:

Annotations
@SuppressWarnings:unchecked
buildJMSPublishingTransportManagerConfigback to summary
protected void buildJMSPublishingTransportManagerConfig(JMSPublishingTransportManagerConfig tmConfig, RemoteCommandManager rcm)

INTERNAL:

buildJMSTopicTransportManagerConfigback to summary
protected void buildJMSTopicTransportManagerConfig(JMSTopicTransportManagerConfig tmConfig, RemoteCommandManager rcm)

INTERNAL:

buildLoginback to summary
protected Login buildLogin(LoginConfig loginConfig)

INTERNAL: Build the correct login based on the login config type

buildReadConnectionPoolConfigback to summary
protected ConnectionPool buildReadConnectionPoolConfig(ReadConnectionPoolConfig poolConfig, ServerSession serverSession)

INTERNAL: Build a read connection pool from the config to store on the server session.

buildRemoteCommandManagerConfigback to summary
protected void buildRemoteCommandManagerConfig(RemoteCommandManagerConfig rcmConfig, AbstractSession session)

INTERNAL:

buildRMIIIOPTransportManagerConfigback to summary
protected void buildRMIIIOPTransportManagerConfig(RMIIIOPTransportManagerConfig tmConfig, RemoteCommandManager rcm)

INTERNAL: Left this in for now since in the future we may add more IIOP specific configurations?

buildRMITransportManagerConfigback to summary
protected void buildRMITransportManagerConfig(RMITransportManagerConfig tmConfig, RemoteCommandManager rcm)

INTERNAL:

buildSequenceback to summary
protected Sequence buildSequence(SequenceConfig sequenceConfig)

INTERNAL: Builds a Sequence from the given SequenceConfig.

buildServerLogConfigback to summary
protected SessionLog buildServerLogConfig(ServerLogConfig serverLogConfig, AbstractSession session)

INTERNAL:

buildServerPlatformConfigback to summary
protected ServerPlatform buildServerPlatformConfig(ServerPlatformConfig platformConfig, DatabaseSessionImpl session)

INTERNAL: Build the appropriate server platform

buildServerSessionConfigback to summary
protected AbstractSession buildServerSessionConfig(ServerSessionConfig serverSessionConfig)

INTERNAL: Builds a server server from the given ServerSessionConfig.

buildSessionback to summary
protected AbstractSession buildSession(SessionConfig sessionConfig)

INTERNAL: Build the correct session based on the session config type

buildSessionBrokerConfigback to summary
protected SessionBroker buildSessionBrokerConfig(SessionBrokerConfig sessionBrokerConfig)

INTERNAL: Builds a session broker from the given SessionBrokerConfig.

buildSessionConfigsback to summary
public Map<String, Session> buildSessionConfigs(SessionConfigs eclipseLinkSessions, ClassLoader classLoader)

INTERNAL: To build EclipseLink sessions, users must call this method with a SessionConfigs object returned from an OX read in the XMLSessionConfigLoader.

Parameters
eclipseLinkSessions:SessionConfigs

object returned from an OX read in the XMLSessionConfigLoader

classLoader:ClassLoader

class loader used in the XMLSessionConfigLoader

Returns:Map<String, Session>

EclipseLink sessions

buildSessionLogback to summary
protected SessionLog buildSessionLog(LogConfig logConfig, AbstractSession session)

INTERNAL:

buildSunCORBATransportManagerConfigback to summary
protected void buildSunCORBATransportManagerConfig(SunCORBATransportManagerConfig tmConfig, RemoteCommandManager rcm)

INTERNAL: Builds a Sun CORBA transport manager with the given remote command manager

buildTransportManagerback to summary
protected void buildTransportManager(TransportManagerConfig tmConfig, RemoteCommandManager rcm)

INTERNAL:

buildUserDefinedTransportManagerConfigback to summary
protected void buildUserDefinedTransportManagerConfig(UserDefinedTransportManagerConfig tmConfig, RemoteCommandManager rcm)

INTERNAL:

buildXMLLoginConfigback to summary
protected Login buildXMLLoginConfig(XMLLoginConfig xmlLoginConfig)

INTERNAL: Wrapped by the getLogin() call, therefore, config can't be null at this point.

createSessionback to summary
protected DatabaseSessionImpl createSession(DatabaseSessionConfig sessionConfig, Login login)

INTERNAL: Return a DatabaseSession object from it's config object using either the project classes or project XML files.

getSessionback to summary
protected DatabaseSessionImpl getSession(SessionConfig sessionConfig, Project project)

INTERNAL: Return the correct session type from the sessionConfig

loadProjectConfigback to summary
protected Project loadProjectConfig(ProjectConfig projectConfig)

INTERNAL: Load a projectConfig from the session.xml file. This method will determine the proper loading scheme, that is, for a class or xml project.

Annotations
@SuppressWarnings:unchecked
prepareProjectLoginback to summary
protected void prepareProjectLogin(Project project, Login login)

INTERNAL: Return the correct session type from the sessionConfig

processCommandsConfigback to summary
protected void processCommandsConfig(CommandsConfig commandsConfig, RemoteCommandManager rcm)

INTERNAL:

processConnectionPolicyConfigback to summary
protected void processConnectionPolicyConfig(ConnectionPolicyConfig connectionPolicyConfig, ServerSession serverSession)

INTERNAL: Process the common elements from a ConnectionPoolConfig

processConnectionPoolConfigback to summary
protected void processConnectionPoolConfig(ConnectionPoolConfig poolConfig, ConnectionPool connectionPool, AbstractSession session)

INTERNAL: Process the common elements from a ConnectionPoolConfig

processDatabaseSessionConfigback to summary
protected void processDatabaseSessionConfig(DatabaseSessionConfig sessionConfig, AbstractSession session)

INTERNAL Process a DatabaseSessionConfig object.

processDiscoveryConfigback to summary
protected void processDiscoveryConfig(DiscoveryConfig discoveryConfig, DiscoveryManager discoveryManager)

INTERNAL:

processJMSTransportManagerConfigback to summary
protected void processJMSTransportManagerConfig(JMSPublishingTransportManagerConfig tmConfig, JMSPublishingTransportManager tm)

INTERNAL: Common JMS configuration

processJNDINamingServiceConfigback to summary
protected void processJNDINamingServiceConfig(JNDINamingServiceConfig namingConfig, TransportManager tm)

INTERNAL:

processLogConfigback to summary
protected void processLogConfig(LogConfig logConfig, SessionLog log)

INTERNAL:

processLoginConfigback to summary
protected void processLoginConfig(LoginConfig loginConfig, DatasourceLogin login)

INTERNAL: Process the common elements of a Login.

processPoolsConfigback to summary
protected void processPoolsConfig(PoolsConfig poolsConfig, ServerSession serverSession)

INTERNAL: Process the PoolsConfig object.

processRMIRegistryNamingServiceConfigback to summary
protected void processRMIRegistryNamingServiceConfig(RMIRegistryNamingServiceConfig namingConfig, TransportManager tm)

INTERNAL:

processSequenceConnectionPoolConfigback to summary
protected void processSequenceConnectionPoolConfig(ConnectionPoolConfig poolConfig, ServerSession serverSession)

INTERNAL: Process a SequenceConnectionPoolConfig object.

processServerPlatformConfigback to summary
protected void processServerPlatformConfig(ServerPlatformConfig platformConfig, ServerPlatform platform)

INTERNAL: Process a ServerPlatformConfig object.

processSessionConfigback to summary
protected void processSessionConfig(SessionConfig sessionConfig, AbstractSession session)

INTERNAL: Process the common elements from a SessionConfig.

processSessionCustomizerback to summary
protected void processSessionCustomizer(SessionConfig sessionConfig, AbstractSession session)

INTERNAL: Process the user inputed session customizer class. Will be run at the end of the session build process

processSessionEventManagerConfigback to summary
protected void processSessionEventManagerConfig(SessionEventManagerConfig sessionEventManagerConfig, AbstractSession session)

INTERNAL:

processStructConverterConfigback to summary
protected void processStructConverterConfig(StructConverterConfig converterClassConfig, DatabaseLogin login)

INTERNAL:

Annotations
@SuppressWarnings:unchecked
processTransportManagerConfigback to summary
protected void processTransportManagerConfig(TransportManagerConfig tmConfig, TransportManager tm)

INTERNAL: