Package org.hibernate.internal.util.xml
Class DTDEntityResolver
- java.lang.Object
-
- org.hibernate.internal.util.xml.DTDEntityResolver
-
- All Implemented Interfaces:
Serializable,EntityResolver
@Deprecated public class DTDEntityResolver extends Object implements EntityResolver, Serializable
Deprecated.Hibernate now uses StAX for XML processing and the role of this class is served now byLocalXmlResourceResolverAnEntityResolverimplementation which attempts to resolve various systemId URLs to local classpath look ups- Any systemId URL beginning with
http://www.hibernate.org/dtd/is searched for as a classpath resource in the classloader which loaded the Hibernate classes. - Any systemId URL using
classpathas the scheme (i.e. starting withclasspath://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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DTDEntityResolver()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InputSourceresolveEntity(String publicId, String systemId)Deprecated.protected InputStreamresolveInHibernateNamespace(String path)Deprecated.protected InputStreamresolveInLocalNamespace(String path)Deprecated.
-
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId)
Deprecated.- Specified by:
resolveEntityin interfaceEntityResolver
-
resolveInHibernateNamespace
protected InputStream resolveInHibernateNamespace(String path)
Deprecated.
-
resolveInLocalNamespace
protected InputStream resolveInLocalNamespace(String path)
Deprecated.
-
-