com.logabit.webtools.navigation
Class NavigationManagerImpl.NavigationLoader

java.lang.Object
  extended by com.logabit.webtools.navigation.NavigationManagerImpl.NavigationLoader
Enclosing class:
NavigationManagerImpl

public class NavigationManagerImpl.NavigationLoader
extends java.lang.Object

Helper class which loads the navigation definition and creates the navigation object out of it. Includes caching of the navigation definition.

Version:
[version]
Author:
Stephan Niedermeier

Constructor Summary
NavigationManagerImpl.NavigationLoader(java.io.File file)
           
 
Method Summary
 java.lang.String getPath()
          Returns the path of the navigation definition file.
 Navigation loadNavigation()
          Creates the navigation object out of the navigation definition file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationManagerImpl.NavigationLoader

public NavigationManagerImpl.NavigationLoader(java.io.File file)
Method Detail

loadNavigation

public Navigation loadNavigation()
                          throws java.net.MalformedURLException,
                                 org.dom4j.DocumentException,
                                 NavigationConfigurationException
Creates the navigation object out of the navigation definition file. A navigation object will only be created if changes occured since last parsing. Otherwise the cached navigation object will be returned.

Returns:
The navigation object.
Throws:
java.net.MalformedURLException
org.dom4j.DocumentException
NavigationConfigurationException

getPath

public java.lang.String getPath()
Returns the path of the navigation definition file.

Returns:


Copyright © 2007. All Rights Reserved.