org.jpu.patterns.serviceLocator
Class Locator.NullCache

java.lang.Object
  extended byorg.jpu.patterns.serviceLocator.Locator.NullCache
All Implemented Interfaces:
ILocator.ICache
Enclosing class:
Locator

public static class Locator.NullCache
extends java.lang.Object
implements ILocator.ICache

Simple cache implementation based on HashMap.


Constructor Summary
Locator.NullCache()
           
 
Method Summary
 void clear()
           
 java.lang.Object get(java.lang.String namingIdentifier)
           
 void put(java.lang.String namingIdentifier, java.lang.Object obj)
           
 void remove(java.lang.String namingIdentifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Locator.NullCache

public Locator.NullCache()
Method Detail

get

public java.lang.Object get(java.lang.String namingIdentifier)
Specified by:
get in interface ILocator.ICache

put

public void put(java.lang.String namingIdentifier,
                java.lang.Object obj)
Specified by:
put in interface ILocator.ICache

clear

public void clear()
Specified by:
clear in interface ILocator.ICache

remove

public void remove(java.lang.String namingIdentifier)
Specified by:
remove in interface ILocator.ICache


Copyright (c) 2001-2003 - Apache Software Foundation