Package org.liquigraph.core.io.xml
Class ClassLoaderChangelogLoader
- java.lang.Object
-
- org.liquigraph.core.io.xml.ClassLoaderChangelogLoader
-
- All Implemented Interfaces:
ChangelogLoader
public final class ClassLoaderChangelogLoader extends Object implements ChangelogLoader
AChangelogLoaderwhich uses aClassLoaderto load changelogs.
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderChangelogLoader(ClassLoader classLoader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ClassLoaderChangelogLoadercurrentThreadContextClassLoader()ClassLoadergetClassLoader()InputStreamload(String changelog)Loads the given changelog.
-
-
-
Constructor Detail
-
ClassLoaderChangelogLoader
public ClassLoaderChangelogLoader(ClassLoader classLoader)
-
-
Method Detail
-
getClassLoader
public ClassLoader getClassLoader()
-
load
public InputStream load(String changelog) throws IOException
Description copied from interface:ChangelogLoaderLoads the given changelog.- Specified by:
loadin interfaceChangelogLoader- Parameters:
changelog- the changelog to load- Returns:
- an input stream of the loaded changelog or
nullif it does not exists - Throws:
IOException- if anything bad happens
-
currentThreadContextClassLoader
public static ClassLoaderChangelogLoader currentThreadContextClassLoader()
-
-