This class is a concrete implmentation of the abstract class
LayoutDefinitionManager . It obtains
LayoutDefinition objects by interpreting the key passed to
XMLLayoutDefinitionManager.getLayoutDefinition(String) as a path to an XML file
describing the
LayoutDefinition . It will first attempt to
resolve this path from the document root of the ServletContext or
PortletCotnext. If that fails, it will attempt to use the Classloader
to resolve it.
Locating the dtd for the XML file is done in a similar manner. It
will first attempt to locate the dtd relative to the ServletContext
(or PortletContext) root. If that fails it will attempt to use the
ClassLoader to resolve it. Optionally a different EntityResolver may
be supplied to provide a custom way of locating the dtd, this is done
via
XMLLayoutDefinitionManager.setEntityResolver .
This class is a singleton. This means modifications to this class
effect all threads using this class. This includes setting
EntityResolvers and ErrorHandlers. These values only need to be set
once to remain in effect as long as the JVM is running.
author: Ken Paulsen (ken.paulsen@sun.com) |