|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.sessions.factories.XMLSessionConfigLoader
public class XMLSessionConfigLoader
Provide a mechanism for loading Session configuration XML files. This is used by the SessionManager to define how to find and load a Session from a sessions XML file. The sessions XML file is typically deployed in the applications jar (ejb-jar) and named sessions.xml in the /META-INF directory. Several loading options are provided,
Nested Class Summary | |
---|---|
class |
XMLSessionConfigLoader.XMLSessionConfigLoaderErrorHandler
INTERNAL: |
Field Summary | |
---|---|
static String |
ECLIPSELINK_SESSIONS_SCHEMA
|
Constructor Summary | |
---|---|
XMLSessionConfigLoader()
PUBLIC: This constructor is used when the file resource named 'sessions.xml' will be parsed for configuration. |
|
XMLSessionConfigLoader(String resourceName)
PUBLIC: This constructor is used when passing in the resource name of the configuration file that should be parsed |
Method Summary | |
---|---|
ClassLoader |
getClassLoader()
PUBLIC: Return the class loader that should be used to find the resource. |
Vector |
getExceptionStore()
INTERNAL: |
String |
getResourceName()
PUBLIC: Returns the resource name we are trying to load. |
String |
getResourcePath()
INTERNAL: Will return the the resource name with full path of the resource file. |
String |
getSessionName()
PUBLIC: Returns the name of the Session in the sessions XML file desired to be loaded. |
boolean |
load(SessionManager sessionManager,
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(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(ClassLoader loader,
boolean validate)
INTERNAL: This method is to be used to load config objects for the Mapping Workbench only. |
void |
setClassLoader(ClassLoader classLoader)
PUBLIC: Set the class loader that should be used to find the resource. |
void |
setResourceName(String resourceName)
PUBLIC: Set the resource name we are trying to load. |
void |
setSessionName(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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ECLIPSELINK_SESSIONS_SCHEMA
Constructor Detail |
---|
public XMLSessionConfigLoader()
public XMLSessionConfigLoader(String resourceName)
Method Detail |
---|
public String getResourcePath()
public Vector getExceptionStore()
public String getResourceName()
public void setResourceName(String resourceName)
public String getSessionName()
public void setSessionName(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 ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public boolean load(SessionManager sessionManager, ClassLoader loader)
public org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs loadConfigsForMappingWorkbench(ClassLoader loader)
public org.eclipse.persistence.internal.sessions.factories.model.SessionConfigs loadConfigsForMappingWorkbench(ClassLoader loader, boolean validate)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |