public final class NavigatorApplication extends Object implements NavigatorApplicationIF
Note: The default behaviour if no plug-ins dir is specified (in web.xml) that there will be no plug-ins available.
APP_CONFIG_DEFAULT_VALUE, APP_CONFIG_KEY, CONTEXT_KEY, FOREACH_SEQ_FIRST_KEY, FOREACH_SEQ_INDEX_KEY, FOREACH_SEQ_LAST_KEY, JNDI_REPOSITORY_KEY, LOG4J_CONFIG_DEFAULT_VALUE, LOG4J_CONFIG_KEY, NAV_APP_KEY, PLUGINS_ROOTDIR_KEY, SOURCE_CONFIG_DEFAULT_VALUE, SOURCE_CONFIG_KEY, TOPICMAPS_REPOSITORY_ID, USER_KEY| Constructor and Description |
|---|
NavigatorApplication(javax.servlet.ServletContext context)
INTERNAL: Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
INTERNAL: Close navigator application and free all resources
connected to it.
|
NavigatorConfigurationIF |
getConfiguration()
INTERNAL: Get
NavigatorConfigurationIF object which allows
access to all application relevant configuration information. |
Object |
getInstanceOf(String classname)
INTERNAL: Get an object instance of specified class name
centralized managed by this instance (application).
|
ModuleIF |
getModule(URL location)
Gets module from internal cache, if it is not in or should be
refreshed the module resource is loaded in again.
|
String |
getName()
INTERNAL: Gets the name of this application.
|
TopicMapIF |
getTopicMapById(String topicmapId)
INTERNAL: Get
TopicMapIF object for specified TopicMap
String Identifier which is in accordance to the identifiers used
by the TopicMapRepositoryIF. |
TopicMapIF |
getTopicMapById(String topicmapId,
boolean readonly)
INTERNAL: Get
TopicMapIF object for specified TopicMap
String Identifier which is in accordance to the identifiers used
by the TopicMapRepositoryIF. |
String |
getTopicMapRefId(TopicMapIF topicmap)
INTERNAL: Get the reference ID of the topic map within the
application's store registry.
|
TopicMapRepositoryIF |
getTopicMapRepository()
INTERNAL: Returns the topic map repository used by the navigator
application.
|
static SharedStoreRegistry |
lookupSharedStoreRegistry(String jndi_name)
INTERNAL: Looks up the SharedStoreRegistry in JNDI.
|
void |
returnTopicMap(TopicMapIF topicmap)
INTERNAL: Returns the
TopicMapIF object to the
navigator application. |
public NavigatorApplication(javax.servlet.ServletContext context)
context - - The ServletContext object, which is
needed to retrieve the context and configuration information
about this web application.public String getName()
NavigatorApplicationIFgetName in interface NavigatorApplicationIFServletContext.getServletContextName().public NavigatorConfigurationIF getConfiguration()
NavigatorApplicationIFNavigatorConfigurationIF object which allows
access to all application relevant configuration information.getConfiguration in interface NavigatorApplicationIFpublic TopicMapRepositoryIF getTopicMapRepository()
NavigatorApplicationIFgetTopicMapRepository in interface NavigatorApplicationIFpublic TopicMapIF getTopicMapById(String topicmapId) throws NavigatorRuntimeException
NavigatorApplicationIFTopicMapIF object for specified TopicMap
String Identifier which is in accordance to the identifiers used
by the TopicMapRepositoryIF.getTopicMapById in interface NavigatorApplicationIFNavigatorRuntimeExceptionpublic TopicMapIF getTopicMapById(String topicmapId, boolean readonly) throws NavigatorRuntimeException
NavigatorApplicationIFTopicMapIF object for specified TopicMap
String Identifier which is in accordance to the identifiers used
by the TopicMapRepositoryIF.getTopicMapById in interface NavigatorApplicationIFNavigatorRuntimeExceptionpublic void returnTopicMap(TopicMapIF topicmap)
NavigatorApplicationIFTopicMapIF object to the
navigator application. Note that the topic map object must have
been retrieved from the navigator application for this to work
properly.returnTopicMap in interface NavigatorApplicationIFpublic String getTopicMapRefId(TopicMapIF topicmap)
NavigatorApplicationIFgetTopicMapRefId in interface NavigatorApplicationIFpublic Object getInstanceOf(String classname) throws NavigatorRuntimeException
NavigatorApplicationIFgetInstanceOf in interface NavigatorApplicationIFclassname - String which can be a shortcut for a
full qualified class name (FQCN) specified in the
classmap of NavigatorConfigurationIF
If no entry is found the classname is interpreted
as FQCN.NavigatorRuntimeExceptionNavigatorConfigurationIFpublic ModuleIF getModule(URL location) throws NavigatorRuntimeException
getModule in interface NavigatorApplicationIFNavigatorRuntimeExceptionpublic void close()
NavigatorApplicationIFclose in interface NavigatorApplicationIFpublic static SharedStoreRegistry lookupSharedStoreRegistry(String jndi_name)