Class NavigatorApplication
java.lang.Object
net.ontopia.topicmaps.nav2.impl.basic.NavigatorApplication
- All Implemented Interfaces:
NavigatorApplicationIF
INTERNAL: Basic Implementation of interface NavigatorApplicationIF to
store all handles to application-wide configuration holders needed
by the navigator framework.
Note: The default behaviour if no plug-ins dir is specified (in web.xml) that there will be no plug-ins available.
-
Field Summary
Fields inherited from interface net.ontopia.topicmaps.nav2.core.NavigatorApplicationIF
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 Summary
ConstructorsConstructorDescriptionNavigatorApplication(javax.servlet.ServletContext context) INTERNAL: Default Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()INTERNAL: Close navigator application and free all resources connected to it.INTERNAL: GetNavigatorConfigurationIFobject which allows access to all application relevant configuration information.getInstanceOf(String classname) INTERNAL: Get an object instance of specified class name centralized managed by this instance (application).Gets module from internal cache, if it is not in or should be refreshed the module resource is loaded in again.getName()INTERNAL: Gets the name of this application.getTopicMapById(String topicmapId) INTERNAL: GetTopicMapIFobject for specified TopicMap String Identifier which is in accordance to the identifiers used by the TopicMapRepositoryIF.getTopicMapById(String topicmapId, boolean readonly) INTERNAL: GetTopicMapIFobject for specified TopicMap String Identifier which is in accordance to the identifiers used by the TopicMapRepositoryIF.getTopicMapRefId(TopicMapIF topicmap) INTERNAL: Get the reference ID of the topic map within the application's store registry.INTERNAL: Returns the topic map repository used by the navigator application.static SharedStoreRegistrylookupSharedStoreRegistry(String jndi_name) INTERNAL: Looks up the SharedStoreRegistry in JNDI.voidreturnTopicMap(TopicMapIF topicmap) INTERNAL: Returns theTopicMapIFobject to the navigator application.
-
Constructor Details
-
NavigatorApplication
public NavigatorApplication(javax.servlet.ServletContext context) INTERNAL: Default Constructor.- Parameters:
context- - The ServletContext object, which is needed to retrieve the context and configuration information about this web application.
-
-
Method Details
-
getName
Description copied from interface:NavigatorApplicationIFINTERNAL: Gets the name of this application.- Specified by:
getNamein interfaceNavigatorApplicationIF- Returns:
- Display name of the web application
ServletContext.getServletContextName().
-
getConfiguration
Description copied from interface:NavigatorApplicationIFINTERNAL: GetNavigatorConfigurationIFobject which allows access to all application relevant configuration information.- Specified by:
getConfigurationin interfaceNavigatorApplicationIF
-
getTopicMapRepository
Description copied from interface:NavigatorApplicationIFINTERNAL: Returns the topic map repository used by the navigator application.- Specified by:
getTopicMapRepositoryin interfaceNavigatorApplicationIF
-
getTopicMapById
Description copied from interface:NavigatorApplicationIFINTERNAL: GetTopicMapIFobject for specified TopicMap String Identifier which is in accordance to the identifiers used by the TopicMapRepositoryIF.- Specified by:
getTopicMapByIdin interfaceNavigatorApplicationIF- Throws:
NavigatorRuntimeException
-
getTopicMapById
public TopicMapIF getTopicMapById(String topicmapId, boolean readonly) throws NavigatorRuntimeException Description copied from interface:NavigatorApplicationIFINTERNAL: GetTopicMapIFobject for specified TopicMap String Identifier which is in accordance to the identifiers used by the TopicMapRepositoryIF.- Specified by:
getTopicMapByIdin interfaceNavigatorApplicationIF- Throws:
NavigatorRuntimeException
-
returnTopicMap
Description copied from interface:NavigatorApplicationIFINTERNAL: Returns theTopicMapIFobject to the navigator application. Note that the topic map object must have been retrieved from the navigator application for this to work properly.- Specified by:
returnTopicMapin interfaceNavigatorApplicationIF
-
getTopicMapRefId
Description copied from interface:NavigatorApplicationIFINTERNAL: Get the reference ID of the topic map within the application's store registry.- Specified by:
getTopicMapRefIdin interfaceNavigatorApplicationIF
-
getInstanceOf
Description copied from interface:NavigatorApplicationIFINTERNAL: Get an object instance of specified class name centralized managed by this instance (application).- Specified by:
getInstanceOfin interfaceNavigatorApplicationIF- Parameters:
classname- String which can be a shortcut for a full qualified class name (FQCN) specified in the classmap ofNavigatorConfigurationIFIf no entry is found the classname is interpreted as FQCN.- Returns:
- An object instance of given class.
- Throws:
NavigatorRuntimeException- See Also:
-
getModule
Gets module from internal cache, if it is not in or should be refreshed the module resource is loaded in again.- Specified by:
getModulein interfaceNavigatorApplicationIF- Throws:
NavigatorRuntimeException
-
close
public void close()Description copied from interface:NavigatorApplicationIFINTERNAL: Close navigator application and free all resources connected to it.- Specified by:
closein interfaceNavigatorApplicationIF
-