org.velocityweb.controller
Class DispatcherTreeManager

java.lang.Object
  extended byorg.velocityweb.controller.DispatcherTreeManager

public class DispatcherTreeManager
extends java.lang.Object


Constructor Summary
DispatcherTreeManager()
           
 
Method Summary
static void addParentChildrenRelationship(java.lang.Class parentDispatcherClass, java.lang.Class childrenDispatcherClass)
           
static void addToRoot(java.lang.Class dispatcherClass)
           
static void buildTree()
           
static Dispatcher getDispatcherInstance(java.lang.Class dispatcherClass, boolean createNewDispatchInstancePerRequest)
           
static Dispatcher[] getDispatcherTree(java.util.List urlIdsList, boolean createNewDispatchInstancePerRequest)
           
static Dispatcher[] getDispatcherTree(java.lang.String url, boolean createNewDispatchInstancePerRequest)
           
static java.lang.String getUrl(java.lang.Class dispatcherClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DispatcherTreeManager

public DispatcherTreeManager()
Method Detail

addToRoot

public static void addToRoot(java.lang.Class dispatcherClass)
                      throws java.lang.InstantiationException,
                             java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

addParentChildrenRelationship

public static void addParentChildrenRelationship(java.lang.Class parentDispatcherClass,
                                                 java.lang.Class childrenDispatcherClass)

buildTree

public static void buildTree()

getUrl

public static java.lang.String getUrl(java.lang.Class dispatcherClass)

getDispatcherInstance

public static Dispatcher getDispatcherInstance(java.lang.Class dispatcherClass,
                                               boolean createNewDispatchInstancePerRequest)
                                        throws java.lang.InstantiationException,
                                               java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

getDispatcherTree

public static Dispatcher[] getDispatcherTree(java.util.List urlIdsList,
                                             boolean createNewDispatchInstancePerRequest)
                                      throws java.lang.InstantiationException,
                                             java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

getDispatcherTree

public static Dispatcher[] getDispatcherTree(java.lang.String url,
                                             boolean createNewDispatchInstancePerRequest)
                                      throws java.lang.InstantiationException,
                                             java.lang.IllegalAccessException
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException