velosurf.util
Class ToolFinder

java.lang.Object
  extended by velosurf.util.ToolFinder

public class ToolFinder
extends java.lang.Object

An utility class used to find a tool in the toolbox. For now, it is only implemented for session tools.

Author:
Claude Brisson

Field Summary
private static java.lang.String toolsMapKey
           
 
Constructor Summary
ToolFinder()
           
 
Method Summary
static
<T> T
findTool(javax.servlet.http.HttpSession session, java.lang.Class<T> toolClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toolsMapKey

private static final java.lang.String toolsMapKey
See Also:
Constant Field Values
Constructor Detail

ToolFinder

public ToolFinder()
Method Detail

findTool

public static <T> T findTool(javax.servlet.http.HttpSession session,
                             java.lang.Class<T> toolClass)
Parameters:
session - the http session the tool is
Returns:
the tool if found in the session, or null


~ooOoo~