public class XMLSessionConfigLoader
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
XMLSessionConfigLoader.XMLSessionConfigLoaderErrorHandler
INTERNAL: Purpose: Provide a mechanism to swallow all parsing errors
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ECLIPSELINK_SESSIONS_SCHEMA |
Constructor and Description |
---|
XMLSessionConfigLoader()
PUBLIC: This constructor is used when the file resource named 'sessions.xml' will be parsed for configuration.
|
XMLSessionConfigLoader(java.lang.String resourceName)
PUBLIC: This constructor is used when passing in the resource name of the configuration file that should be parsed
|
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getClassLoader()
PUBLIC: Return the class loader that should be used to find the resource.
|
java.util.Vector |
getExceptionStore()
INTERNAL:
|
java.lang.String |
getResourceName()
PUBLIC: Returns the resource name we are trying to load.
|
java.lang.String |
getResourcePath()
INTERNAL: Will return the the resource name with full path of the resource file.
|
java.lang.String |
getSessionName()
PUBLIC: Returns the name of the Session in the sessions XML file desired to be loaded.
|
boolean |
load(SessionManager sessionManager, java.lang.ClassLoader loader)
INTERNAL: This method instantiates the parser and builds the document based on the schema.
|
org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs |
loadConfigsForMappingWorkbench(java.lang.ClassLoader loader)
INTERNAL: This method is to be used to load config objects for the Mapping Workbench only.
|
org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs |
loadConfigsForMappingWorkbench(java.lang.ClassLoader loader, boolean validate)
INTERNAL: This method is to be used to load config objects for the Mapping Workbench only.
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
PUBLIC: Set the class loader that should be used to find the resource.
|
void |
setResourceName(java.lang.String resourceName)
PUBLIC: Set the resource name we are trying to load.
|
void |
setSessionName(java.lang.String sessionName)
PUBLIC: Set the name of the Session in the sessions XML file desired to be loaded.
|
void |
setShouldCheckClassLoader(boolean shouldCheckClassLoader)
PUBLIC: Set if the session will be refreshed from the file if the class loader requesting the load is different than the loaded session's class loader.
|
void |
setShouldLogin(boolean shouldLogin)
PUBLIC: Set if the loaded session should be connected.
|
void |
setShouldRefresh(boolean shouldRefresh)
PUBLIC: Set if the loaded session should be refreshed from the file.
|
boolean |
shouldCheckClassLoader()
PUBLIC: Return if the session will be refreshed from the file if the class loader requesting the load is different than the loaded session's class loader.
|
boolean |
shouldLogin()
PUBLIC: Return if the loaded session should be connected.
|
boolean |
shouldRefresh()
PUBLIC: Return if the loaded session should be refreshed from the file.
|
public static final java.lang.String ECLIPSELINK_SESSIONS_SCHEMA
public XMLSessionConfigLoader()
public XMLSessionConfigLoader(java.lang.String resourceName)
public java.lang.String getResourcePath()
public java.util.Vector getExceptionStore()
public java.lang.String getResourceName()
public void setResourceName(java.lang.String resourceName)
public java.lang.String getSessionName()
public void setSessionName(java.lang.String sessionName)
public boolean shouldLogin()
public void setShouldLogin(boolean shouldLogin)
public boolean shouldRefresh()
public void setShouldRefresh(boolean shouldRefresh)
public boolean shouldCheckClassLoader()
public void setShouldCheckClassLoader(boolean shouldCheckClassLoader)
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
public boolean load(SessionManager sessionManager, java.lang.ClassLoader loader)
public org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs loadConfigsForMappingWorkbench(java.lang.ClassLoader loader)
public org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs loadConfigsForMappingWorkbench(java.lang.ClassLoader loader, boolean validate)