|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.config.Configuration | +--oracle.cabo.share.config.ConfigurationImpl
ConfigurationImpl
is the default implementation of
Configuration
. See that interface's documentation
for information on the configuration architecture.
Fields inherited from class oracle.cabo.share.config.Configuration |
ACCESSIBILITY_MODE, BASE_DIRECTORY, DISABLE_CONTENT_COMPRESSION, HEADLESS, HELP_PROVIDER, IMAGE_SERVLET_URL, IMAGE_TYPE_MANAGER, IMAGES_CACHE_DIRECTORY, IMAGES_DIRECTORY, JSLIBS_DIRECTORY, JSPS_DIRECTORY, LOOK_AND_FEEL, LOOK_AND_FEEL_MANAGER, RENDERER_MANAGER, STYLE_SHEET_NAME, STYLES_CACHE_DIRECTORY, STYLES_DIRECTORY, TECATE_SERVLET_URL, TRANSLATION_LOCALE_MAPPER, USER_STYLE_SHEET, XML_PROVIDER |
Constructor Summary | |
ConfigurationImpl(java.lang.String name)
Creates a default ConfigurationImpl. |
|
ConfigurationImpl(java.lang.String name,
ConfigurationImpl base)
Creates a default ConfigurationImpl. |
Method Summary | |
java.lang.String |
getPath(java.lang.Object key,
java.lang.String contextPath)
Return a path for a UIX directory. |
java.lang.Object |
getProperty(java.lang.Object key)
Return a registered property. |
java.lang.String |
getURI(java.lang.Object key,
java.lang.String contextURI)
Return a URI for a UIX directory. |
boolean |
isDebug()
Returns whether the configuration is in debug mode. |
void |
putFullURIAndPath(java.lang.Object key,
java.lang.String uri,
java.lang.String path)
Register a full URI and path. |
void |
putProperty(java.lang.Object key,
java.lang.Object value)
Register a propery. |
void |
putRelativeURI(java.lang.Object key,
java.lang.String uri)
Register a context-relative URI . |
void |
setDebug(boolean debug)
Returns whether the configuration is in debug mode. |
static Configuration |
sharedInstance()
Deprecated. since 2.1.6, developers should use ApplicationConfiguration to retrieve the default configuration. |
Methods inherited from class oracle.cabo.share.config.Configuration |
getConfiguration, getConfiguration, getName, register, register, unregister, unregister |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConfigurationImpl(java.lang.String name)
public ConfigurationImpl(java.lang.String name, ConfigurationImpl base)
Method Detail |
public static Configuration sharedInstance()
public boolean isDebug()
isDebug
in class Configuration
public void setDebug(boolean debug)
public java.lang.String getURI(java.lang.Object key, java.lang.String contextURI)
getURI
in class Configuration
key
- the key used to identify the directorycontextURI
- the current contextURI; this will
be preprended to the returned URI if this directory
is registered as (or defaulting to) context-relative.
This path must not be terminated with a separator ("/").DirectoryUnavailableException
- if the directory is
unavailablepublic java.lang.String getPath(java.lang.Object key, java.lang.String contextPath)
getPath
in class Configuration
key
- the key used to identify the directorycontextPath
- the current context path; this will
be preprended to the returned path if this directory
is registered as (or defaulting to) context-relative.DirectoryUnavailableException
- if the directory is
unavailablepublic java.lang.Object getProperty(java.lang.Object key)
getProperty
in class Configuration
key
- the key used to identify the propertypublic void putFullURIAndPath(java.lang.Object key, java.lang.String uri, java.lang.String path)
key
- the key used to identify the directoryuri
- the full URI pointing to the desired locationpath
- the full path corresponding to the given URI on the
webserver.public void putRelativeURI(java.lang.Object key, java.lang.String uri)
key
- the key used to identify the directoryuri
- a URI pointing to the desired location, relative
to the root of a web applicationpublic void putProperty(java.lang.Object key, java.lang.Object value)
putRelativeURI()
and
putFullURIAndPath()
key
- the key used to identify the directoryvalue
- the registered valueputRelativeURI(java.lang.Object, java.lang.String)
,
putFullURIAndPath(java.lang.Object, java.lang.String, java.lang.String)
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |