|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IApplicationInitializer
QuartzDesk Web Application initializer interface that is used to obtain important resources required for successful application initialization.
By default, the QuartzDesk Web Application uses the com.quartzdesk.core.initializer.WorkDirApplicationInitializer
implementation that uses resources stored in the configured work directory specified in the quartzdesk.work.dir servlet context init parameter or JVM system property.
Integrators can specify a custom initializer implementation by specifying the implementation class in the quartzdesk.initializer.class servlet context init parameter or JVM system property.
All implementing classes must provide a no-arg constructor.
| Method Summary | |
|---|---|
File |
getCustomizationDir()
Invoked by the QuartzDesk Web Application to obtain the directory where the application looks for customization resources. |
InputStream |
getLicenseKey()
Invoked by the QuartzDesk Web Application to obtain the application license key data. |
InputStream |
getLoggingConfig()
Invoked by the QuartzDesk Web Application to obtain the logging framework configuration data. |
Map<String,String> |
getLoggingContextProperties()
Invoked by the QuartzDesk Web Application to obtain the application logging context properties. |
Properties |
getNonDefaultConfigProperties()
Invoked by the QuartzDesk Web Application to obtain the non-default application configuration properties (typically stored in the [quartzdesk.work.dir]/quartzdesk.properties file). |
File |
getOemDir()
Invoked by the QuartzDesk Web Application to obtain the OEM directory where the application looks for overridden resource files (images, i18n resources, JavaScript resources etc.). |
File |
getTempDir()
Invoked by the QuartzDesk Web Application to obtain the temporary directory where the application stores temporary files (e.g. |
void |
initialize(javax.servlet.ServletContext servletContext)
Invoked by the QuartzDesk Web Application during its initialization. |
| Method Detail |
|---|
void initialize(javax.servlet.ServletContext servletContext)
servletContext - a servlet context.File getOemDir()
File getCustomizationDir()
File getTempDir()
InputStream getLicenseKey()
InputStream getLoggingConfig()
The logging configuration data must be compatible with the Logback configuration XML DTD/schema.
Map<String,String> getLoggingContextProperties()
For example:
<appender name="FILE" class="ext.ch.qos.logback.core.rolling.RollingFileAppender">
<file>${logs.dir}/quartzdesk.log</file>
<append>true</append>
...
</appender>
Properties getNonDefaultConfigProperties()
[quartzdesk.work.dir]/quartzdesk.properties file).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||