public class ConstantClassLoaderProvider extends Object implements DatasetClassLoaderProvider
ClassLoader for every dataset module. The assumption is that the
classloader has access to any dataset module that may be created.
This is true for a ProgramClassLoader for example. Closing the given classloader is left to the caller.
It will not be closed when this class is closed.| Constructor and Description |
|---|
ConstantClassLoaderProvider() |
ConstantClassLoaderProvider(ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ClassLoader |
get(DatasetModuleMeta moduleMeta,
ClassLoader parentClassLoader)
Get the classloader for a specific dataset module.
|
public ConstantClassLoaderProvider()
public ConstantClassLoaderProvider(@Nullable ClassLoader classLoader)
public ClassLoader get(DatasetModuleMeta moduleMeta, ClassLoader parentClassLoader) throws IOException
DatasetClassLoaderProviderget in interface DatasetClassLoaderProvidermoduleMeta - the metadata for the dataset module to get a classloader forparentClassLoader - the class loader to use as the parentIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.