|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.conf.Configuration
org.apache.cayenne.conf.DefaultConfiguration
org.apache.cayenne.conf.BasicServletConfiguration
public class BasicServletConfiguration
BasicServletConfiguration is a Configuration that uses ServletContext to locate resources. This class can only be used in a context of a servlet/jsp container. It resolves configuration file paths relative to the web application "WEB-INF" directory.
BasicServletConfiguration is compatible with Servlet Specification 2.2 and higher. Also look at ServletConfiguration for the information how to utilize listeners introduced in Servlet Specification 2.3.
Field Summary | |
---|---|
static java.lang.String |
CONFIGURATION_PATH_KEY
Deprecated. |
static java.lang.String |
DATA_CONTEXT_KEY
Deprecated. |
protected javax.servlet.ServletContext |
servletContext
Deprecated. |
Fields inherited from class org.apache.cayenne.conf.Configuration |
---|
ACCEPT_ALL_DATAVIEWS, configurationShutdownHook, dataDomains, dataViewLocations, DEFAULT_CONFIGURATION_CLASS, DEFAULT_DOMAIN_FILE, DEFAULT_LOGGING_PROPS_FILE, domainConfigurationName, eventManager, ignoringLoadFailures, loaderDelegate, loadStatus, overrideFactory, projectVersion, saverDelegate, sharedConfiguration |
Constructor Summary | |
---|---|
BasicServletConfiguration()
Deprecated. |
|
BasicServletConfiguration(javax.servlet.ServletContext ctxt)
Deprecated. |
Method Summary | |
---|---|
boolean |
canInitialize()
Deprecated. Default implementation of Configuration.canInitialize() . |
static DataContext |
getDefaultContext(javax.servlet.http.HttpSession session)
Deprecated. Returns default Cayenne DataContext associated with the HttpSession. |
javax.servlet.ServletContext |
getServletContext()
Deprecated. Returns current application context object. |
static BasicServletConfiguration |
initializeConfiguration(javax.servlet.ServletContext ctxt)
Deprecated. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
Deprecated. Sets the servletContext. |
Methods inherited from class org.apache.cayenne.conf.DefaultConfiguration |
---|
addClassPath, addResourcePath, didInitialize, getDomainConfiguration, getMapConfiguration, getResourceLocator, getViewConfiguration, initialize, setResourceLocator, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIGURATION_PATH_KEY
public static final java.lang.String DATA_CONTEXT_KEY
protected javax.servlet.ServletContext servletContext
Constructor Detail |
---|
public BasicServletConfiguration()
public BasicServletConfiguration(javax.servlet.ServletContext ctxt)
Method Detail |
---|
public static BasicServletConfiguration initializeConfiguration(javax.servlet.ServletContext ctxt)
public static DataContext getDefaultContext(javax.servlet.http.HttpSession session)
public void setServletContext(javax.servlet.ServletContext servletContext)
servletContext
- The servletContext to setpublic javax.servlet.ServletContext getServletContext()
public boolean canInitialize()
DefaultConfiguration
Configuration.canInitialize()
. Creates a
ResourceLocator suitable for loading from the CLASSPATH, unless it has already been
set in a subclass. Always returns true
.
canInitialize
in class DefaultConfiguration
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |