org.globus.ogsa.handlers.container
Class ContainerHandlerHelper

java.lang.Object
  extended byorg.globus.ogsa.handlers.container.ContainerHandlerHelper

public class ContainerHandlerHelper
extends java.lang.Object

A helper class for parsing container handler lists, loading the handlers and executing them.


Constructor Summary
ContainerHandlerHelper()
           
 
Method Summary
protected static void runHandler(ContainerHandler handler)
          Executes the handler.
protected static void runHandler(java.lang.String handler)
          Loads the handler class and executes the handler.
static void runHandlers(java.lang.String handlerList)
          Parses the handler list, loads the handler class and executes the handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerHandlerHelper

public ContainerHandlerHelper()
Method Detail

runHandlers

public static void runHandlers(java.lang.String handlerList)
                        throws java.lang.Exception
Parses the handler list, loads the handler class and executes the handler. Will shutdown the container if any error occurs.

Parameters:
handlerList - space separated list of container handlers class names.
Throws:
the - exception raised by the first handler that failed or the exception that occurred during handler loading.
java.lang.Exception

runHandler

protected static void runHandler(java.lang.String handler)
                          throws java.lang.Exception
Loads the handler class and executes the handler. If the handler class failed to load or instantiate or the handler itself failed, the container will be shutdown.

Parameters:
handler - the container handler class.
Throws:
the - exception raised by the handler or the exception that occurred during handler loading.
java.lang.Exception

runHandler

protected static void runHandler(ContainerHandler handler)
                          throws java.lang.Exception
Executes the handler. If the handler throws an exception the entire container will be shutdown.

Parameters:
handler - the container handler.
Throws:
the - exception raised by the handler.
java.lang.Exception


Copyright ? 1999 University of Chicago and The University of Southern California. All Rights Reserved.