|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.tools.sessionconfiguration.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,
Constructor Summary | |
---|---|
XMLSessionConfigLoader()
This constructor is used when the file resource named 'sessions.xml' will be parsed for configuration. |
|
XMLSessionConfigLoader(java.lang.String resourceName)
This constructor is used when passing in the resource name of the configuration file that should be parsed |
Method Summary | |
---|---|
java.lang.ClassLoader |
getClassLoader()
Return the class loader that should be used to find the resource. |
java.lang.String |
getResourceName()
Returns the resource name we are trying to load. |
java.lang.String |
getSessionName()
Returns the name of the Session in the sessions XML file desired to be loaded. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Set the class loader that should be used to find the resource. |
void |
setResourceName(java.lang.String resourceName)
Set the resource name we are trying to load. |
void |
setSessionName(java.lang.String sessionName)
Set the name of the Session in the sessions XML file desired to be loaded. |
void |
setShouldCheckClassLoader(boolean shouldCheckClassLoader)
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)
Set if the loaded session should be connected. |
void |
setShouldRefresh(boolean shouldRefresh)
Set if the loaded session should be refreshed from the file. |
boolean |
shouldCheckClassLoader()
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()
Return if the loaded session should be connected. |
boolean |
shouldRefresh()
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 |
Constructor Detail |
---|
public XMLSessionConfigLoader()
public XMLSessionConfigLoader(java.lang.String resourceName)
Method Detail |
---|
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)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |