org.objectweb.fractal.adl
Class CachingLoader

java.lang.Object
  extended byorg.objectweb.fractal.adl.DelegatingLoader
      extended byorg.objectweb.fractal.adl.CachingLoader
All Implemented Interfaces:
BindingController, Loader
Direct Known Subclasses:
CheckingLoader, ResolvingLoader

public abstract class CachingLoader
extends DelegatingLoader

A DelegatingLoader that maintains a cache of already loaded definitions.


Field Summary
 
Fields inherited from class org.objectweb.fractal.adl.DelegatingLoader
delegate, logger, loggerFactory
 
Constructor Summary
CachingLoader()
           
 
Method Summary
 XMLElement loadTemplateDescriptor(String name)
          Loads the template definition whose name is given.
 XMLElement loadTypeDescriptor(String name)
          Loads the type definition whose name is given.
 
Methods inherited from class org.objectweb.fractal.adl.DelegatingLoader
bindFc, handleTemplateDescriptor, handleTypeDescriptor, listFc, lookupFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingLoader

public CachingLoader()
Method Detail

loadTypeDescriptor

public XMLElement loadTypeDescriptor(String name)
                              throws ParserException
Description copied from interface: Loader
Loads the type definition whose name is given. Depending on the implementation, this method can return or not a different object when it is called several times with the same argument.

Specified by:
loadTypeDescriptor in interface Loader
Overrides:
loadTypeDescriptor in class DelegatingLoader
Throws:
ParserException

loadTemplateDescriptor

public XMLElement loadTemplateDescriptor(String name)
                                  throws ParserException
Description copied from interface: Loader
Loads the template definition whose name is given. Depending on the implementation, this method can return or not a different object when it is called several times with the same argument.

Specified by:
loadTemplateDescriptor in interface Loader
Overrides:
loadTemplateDescriptor in class DelegatingLoader
Throws:
ParserException