org.apache.jetspeed.decoration.caches
Class HashMapPathResolverCache

java.lang.Object
  extended by org.apache.jetspeed.decoration.caches.HashMapPathResolverCache
All Implemented Interfaces:
org.apache.jetspeed.decoration.PathResolverCache
Direct Known Subclasses:
SessionPathResolverCache

public class HashMapPathResolverCache
extends Object
implements org.apache.jetspeed.decoration.PathResolverCache

Uses a java.util.HashMap to cache previously located resources pathes.

Author:
Scott T. Weaver

Field Summary
protected  Map cache
           
 
Constructor Summary
HashMapPathResolverCache()
           
 
Method Summary
 void addPath(String key, String path)
           
 void clear()
           
 String getPath(String key)
           
 String removePath(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected Map cache
Constructor Detail

HashMapPathResolverCache

public HashMapPathResolverCache()
Method Detail

addPath

public void addPath(String key,
                    String path)
Specified by:
addPath in interface org.apache.jetspeed.decoration.PathResolverCache

getPath

public String getPath(String key)
Specified by:
getPath in interface org.apache.jetspeed.decoration.PathResolverCache

removePath

public String removePath(String key)
Specified by:
removePath in interface org.apache.jetspeed.decoration.PathResolverCache

clear

public void clear()
Specified by:
clear in interface org.apache.jetspeed.decoration.PathResolverCache


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.