|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.stellent.wcm.server.ServerContext
public class ServerContext
Represents the main application in the OpenWCM world. Has references to all the available APIs in the system. Should be instatiated once per application and shared across threads.
Constructor Summary | |
---|---|
ServerContext(Configuration config) Create an application with the given server configuration |
|
ServerContext(Configuration config, java.io.File tempDirectory) Create an application with the given server configuration |
|
ServerContext(java.net.URL configFile) Initialize the server application by reading the configuration file. |
|
ServerContext(java.net.URL configFile, java.io.File tempDirectory) Initialize the server application by reading the configuration file. |
Method Summary | |
---|---|
Configuration |
getConfig() |
ContentFactory |
getContentFactory() |
EventProcessor |
getEventProcessor() |
FSCacheMaintenance |
getFsCacheMaintainer() |
IdcClientFactory |
getIdcClientFactory() |
IdcServerPoller |
getIdcPoller() |
protected java.lang.String |
getProjectFileBannerState(SiteConfiguration siteConfig) Return state for startup banner of the project file |
ProjectManager |
getProjectService() |
Provider |
getProvider() |
RequestProcessor |
getRequestProcessor() |
protected java.io.File |
getTempDirectory(java.io.File rootDir) Retrieve a temporary directory |
protected void |
initialize(Configuration configuration) Initialize the server application with this server configuration. |
protected void |
outputInitBanner(ILog.Level level) Output the initialization banner |
protected void |
postInitialization() Called after sites have been initialized |
void |
shutdown() Called to shutdown the server application and release any resources. |
protected void |
validateConfiguration() Called prior to initialization; validate the configuration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerContext(java.net.URL configFile)
configFile
- the url of the configuration filepublic ServerContext(java.net.URL configFile, java.io.File tempDirectory)
configFile
- the url of the configuration filetempDirectory
- the temporary directory to use to hold content if no staging directory is setpublic ServerContext(Configuration config)
config
- the system configpublic ServerContext(Configuration config, java.io.File tempDirectory)
config
- the system configtempDirectory
- the temporary directory to use to hold content if no staging directory is setMethod Detail |
---|
public Provider getProvider()
public ProjectManager getProjectService()
public Configuration getConfig()
public ContentFactory getContentFactory()
public RequestProcessor getRequestProcessor()
public EventProcessor getEventProcessor()
public IdcClientFactory getIdcClientFactory()
public IdcServerPoller getIdcPoller()
public FSCacheMaintenance getFsCacheMaintainer()
public void shutdown()
protected java.io.File getTempDirectory(java.io.File rootDir) throws java.io.IOException
rootDir
- the root directoryjava.io.IOException
protected void initialize(Configuration configuration) throws ServerException
configuration
- the system configurationServerException
protected void validateConfiguration() throws ServerException
ServerException
- the configuration is invalidprotected void postInitialization()
protected java.lang.String getProjectFileBannerState(SiteConfiguration siteConfig)
siteConfig
- the site configprotected void outputInitBanner(ILog.Level level)
level
- the output level for the message
|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |