uk.co.weft.configurator
Class InitialisationManager
java.lang.Object
uk.co.weft.configurator.InitialisationManager
- public abstract class InitialisationManager
- extends java.lang.Object
Central broker for initialisation checkers. There's a serious problem with
initialising a new webapp in place after it's been delivered. We need to
do this to set up database structures and possibly in future for other
reasons as well, in order to make webapps extremely simple to deliver. But
firstly it's quite difficult to come up with a scheme for checking for
'virginity' which will work in all circumstances, and secondly as the
check will be made each time a servlet is initialised it has to be fast.
TODO: doesn't really work and probably isn't going to. Should be deleted.
|
Field Summary |
static java.lang.String |
CHECKERCLASSTOKEN
a token in the context whose value should be the name of the class of
checker to use |
protected static java.util.Map |
checkers
the checkers I know about - in practice almost certainly only one. |
|
Method Summary |
static boolean |
requireInitialisation(javax.servlet.Servlet servlet,
Context config)
does the ServletContext of this servlet require initialisation? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHECKERCLASSTOKEN
public static final java.lang.String CHECKERCLASSTOKEN
- a token in the context whose value should be the name of the class of
checker to use
- See Also:
- Constant Field Values
checkers
protected static java.util.Map checkers
- the checkers I know about - in practice almost certainly only one.
InitialisationManager
public InitialisationManager()
requireInitialisation
public static boolean requireInitialisation(javax.servlet.Servlet servlet,
Context config)
throws InitialisationException
- does the ServletContext of this servlet require initialisation?
- Parameters:
servlet - config -
- Returns:
- true if the context of the servlet requires first-time-ever
initialisation, else false.
- Throws:
InitialisationException