Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » util » [javadoc | source]
org.hibernate.util
public class: DTDEntityResolver [javadoc | source]
java.lang.Object
   org.hibernate.util.DTDEntityResolver

All Implemented Interfaces:
    Serializable, EntityResolver

Direct Known Subclasses:
    EJB3DTDEntityResolver

An EntityResolver implementation which attempts to resolve various systemId URLs to local classpath lookups
  1. Any systemId URL beginning with http://hibernate.sourceforge.net/ is searched for as a classpath resource in the classloader which loaded the Hibernate classes.
  2. Any systemId URL using classpath as the scheme (i.e. starting with classpath:// is searched for as a classpath resource using first the current thread context classloader and then the classloader which loaded the Hibernate classes.

Any entity references which cannot be resolved in relation to the above rules result in returning null, which should force the SAX reader to handle the entity reference in its default manner.

Method from org.hibernate.util.DTDEntityResolver Summary:
resolveEntity,   resolveInHibernateNamespace,   resolveInLocalNamespace
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.util.DTDEntityResolver Detail:
 public InputSource resolveEntity(String publicId,
    String systemId) 
 protected InputStream resolveInHibernateNamespace(String path) 
 protected InputStream resolveInLocalNamespace(String path)