classpathhelper
Interface SessionCache


public interface SessionCache

A generic cache object that floats around the system saving references to common calculated classes (particularly strings).

Since:
1.1
Author:
bharris

Method Summary
 java.lang.String classToPath(java.lang.String classname)
          Method for retreiving the expected path of a classname.
 ClassDescription getClassDescription(java.lang.String classname)
          A mapping between a class name and its description.
 java.lang.String[] getClassName(java.lang.String pathName)
          Retrieves the class name given a path to a java class (including .class extension)
 java.lang.String getPackageName(java.lang.String pathName)
          Method that returns the package name from a path.
 

Method Detail

getPackageName

public java.lang.String getPackageName(java.lang.String pathName)
Method that returns the package name from a path.

Parameters:
pathName - The full path name.
Returns:
The appropriate package name.
Since:
1.1

getClassName

public java.lang.String[] getClassName(java.lang.String pathName)
Retrieves the class name given a path to a java class (including .class extension)

Parameters:
pathName - The path to the class.
Returns:
Array of length 2, first parameter is the individual name, second is the fully qualifed. When the class is in the default package, both names are the same.
Since:
1.1

classToPath

public java.lang.String classToPath(java.lang.String classname)
Method for retreiving the expected path of a classname.

Parameters:
classname - The classname
Returns:
A string representing the expected path ('/' used as path seperator).
Since:
1.1

getClassDescription

public ClassDescription getClassDescription(java.lang.String classname)
A mapping between a class name and its description.

Parameters:
classname - The class name
Returns:
The description.
Since:
1.1