liquibase.parser.core.xml
Class LiquibaseEntityResolver

java.lang.Object
  extended by liquibase.parser.core.xml.LiquibaseEntityResolver
All Implemented Interfaces:
EntityResolver, EntityResolver2

public class LiquibaseEntityResolver
extends Object
implements EntityResolver2

Finds the Liquibase schema from the classpath rather than fetching it over the Internet. Also resolve external entities using a resourceAccessor if it's provided


Constructor Summary
LiquibaseEntityResolver()
           
 
Method Summary
 InputSource getExternalSubset(String name, String baseURI)
           
 InputSource resolveEntity(String publicId, String systemId)
           
 InputSource resolveEntity(String name, String publicId, String baseURI, String systemId)
           
 void useResoureAccessor(ResourceAccessor resourceAccessor, String basePath)
          Use the resource accessor to resolve external entities
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiquibaseEntityResolver

public LiquibaseEntityResolver()
Method Detail

useResoureAccessor

public void useResoureAccessor(ResourceAccessor resourceAccessor,
                               String basePath)
Use the resource accessor to resolve external entities

Parameters:
resourceAccessor - Resource accessor to use
basePath - Base path to use in the resourceAccessor

resolveEntity

public InputSource resolveEntity(String name,
                                 String publicId,
                                 String baseURI,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver2
Throws:
SAXException
IOException

getExternalSubset

public InputSource getExternalSubset(String name,
                                     String baseURI)
                              throws SAXException,
                                     IOException
Specified by:
getExternalSubset in interface EntityResolver2
Throws:
SAXException
IOException

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException


Copyright © 2012 Liquibase.org. All Rights Reserved.