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 int toolsLibraryVersion
           
private static java.lang.String toolsMapKey
           
 
Constructor Summary
ToolFinder()
           
 
Method Summary
static
<T> T
findSessionTool(javax.servlet.http.HttpSession session, java.lang.Class<T> toolClass)
          Find a session tool.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toolsMapKey

private static java.lang.String toolsMapKey

toolsLibraryVersion

private static int toolsLibraryVersion
Constructor Detail

ToolFinder

public ToolFinder()
Method Detail

findSessionTool

public static <T> T findSessionTool(javax.servlet.http.HttpSession session,
                                    java.lang.Class<T> toolClass)
Find a session tool.

Parameters:
session - the http session the tool is
Returns:
the tool if found in the session, or null


~ooOoo~