org.benow.web
Interface InitializationChecker

All Known Implementing Classes:
InitializationCheckerImpl, UserModuleChecker

public interface InitializationChecker

A plugin for triggering application initialization. If the application is not initialized, the initialization process is triggered. Initializers are registered, and may be ordered by position, using a @Position annotation (0=first, 99=last)

Author:
andy

Method Summary
 boolean continueTesting()
           
 java.lang.String getInitializationURI()
           
 boolean isAllowed(java.lang.String path)
          Is this initializer at the given url in the process of initializing, if so requests will be allowed.
 boolean isInitialized()
           
 

Method Detail

isInitialized

boolean isInitialized()
Returns:
true if is initialized (all prereq's fulfilled)

getInitializationURI

java.lang.String getInitializationURI()
Returns:
the uri to begin initialization

isAllowed

boolean isAllowed(java.lang.String path)
Is this initializer at the given url in the process of initializing, if so requests will be allowed.

Parameters:
path - the path portion of the requested url
Returns:
true if initializing for given url

continueTesting

boolean continueTesting()
Returns:
true if testing is to be repeated with subsequent tests, or false if testing is complete and the initialization checker never needs to be called again. If finished testing, the checker is removed, resulting is better performance.