com.xpn.xwiki.store.migration.hibernate
Class MigrationResourceAccessor

java.lang.Object
  extended by liquibase.resource.ClassLoaderResourceAccessor
      extended by com.xpn.xwiki.store.migration.hibernate.MigrationResourceAccessor
All Implemented Interfaces:
liquibase.resource.ResourceAccessor

public class MigrationResourceAccessor
extends liquibase.resource.ClassLoaderResourceAccessor

Liquibase accessor that provide access to changelogs stored in DataMigration.

Since:
4.0M1
Version:
$Id: 55ca49ea29547e21699a52882211ba8262f98b39 $

Field Summary
static String CHANGELOG_NAME
          Name for which the change log is served.
 
Constructor Summary
MigrationResourceAccessor(String changeLog)
          Create a new accessor to support the dynamically created change log.
 
Method Summary
 InputStream getResourceAsStream(String file)
           
 
Methods inherited from class liquibase.resource.ClassLoaderResourceAccessor
getResources, toClassLoader, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHANGELOG_NAME

public static final String CHANGELOG_NAME
Name for which the change log is served.

See Also:
Constant Field Values
Constructor Detail

MigrationResourceAccessor

public MigrationResourceAccessor(String changeLog)
Create a new accessor to support the dynamically created change log.

Parameters:
changeLog - the dynamically created change log
Method Detail

getResourceAsStream

public InputStream getResourceAsStream(String file)
                                throws IOException
Specified by:
getResourceAsStream in interface liquibase.resource.ResourceAccessor
Overrides:
getResourceAsStream in class liquibase.resource.ClassLoaderResourceAccessor
Throws:
IOException


Copyright © 2004–2014 XWiki. All rights reserved.