org.nakedobjects.metamodel.specloader.internal.cache
Class SimpleSpecificationCache

java.lang.Object
  extended by org.nakedobjects.metamodel.specloader.internal.cache.SimpleSpecificationCache
All Implemented Interfaces:
SpecificationCache

public class SimpleSpecificationCache
extends java.lang.Object
implements SpecificationCache


Constructor Summary
SimpleSpecificationCache()
           
 
Method Summary
 NakedObjectSpecification[] allSpecifications()
           
 void cache(java.lang.String className, NakedObjectSpecification spec)
           
 void clear()
           
 NakedObjectSpecification get(java.lang.String className)
          Returns the NakedObjectSpecification, or possibly null if has not been cached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSpecificationCache

public SimpleSpecificationCache()
Method Detail

get

public NakedObjectSpecification get(java.lang.String className)
Description copied from interface: SpecificationCache
Returns the NakedObjectSpecification, or possibly null if has not been cached.

Specified by:
get in interface SpecificationCache

cache

public void cache(java.lang.String className,
                  NakedObjectSpecification spec)
Specified by:
cache in interface SpecificationCache

clear

public void clear()
Specified by:
clear in interface SpecificationCache

allSpecifications

public NakedObjectSpecification[] allSpecifications()
Specified by:
allSpecifications in interface SpecificationCache


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.