org.objectweb.fractal.adl
Class CachingLoader
java.lang.Object
org.objectweb.fractal.adl.DelegatingLoader
org.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingLoader
public CachingLoader()
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