public class ServiceRegistrarLoader extends Object
ServiceRegistrarFactory instances.| Constructor and Description |
|---|
ServiceRegistrarLoader() |
| Modifier and Type | Method and Description |
|---|---|
static ServiceRegistrarFactory |
load()
Load a
ServiceRegistrarFactory using the current class loader. |
static ServiceRegistrarFactory |
load(Path plugin)
Load a
ServiceRegistrarFactory from a plugin jar file with a parent class loader that
will not load classes from the jvm classpath. |
static ServiceRegistrarFactory |
load(Path plugin,
ClassLoader environment,
ClassLoader parent)
Load a
ServiceRegistrarFactory from a plugin jar file with a specified parent class
loader and a list of exposed classes. |
static ServiceRegistrarFactory |
load(String source,
ClassLoader classLoader)
Load a
ServiceRegistrarFactory using a class loader. |
public static ServiceRegistrarFactory load() throws ServiceRegistrarLoadingException
ServiceRegistrarFactory using the current class loader.ServiceRegistrarFactory, null if none could be found.ServiceRegistrarLoadingException - if loading failed.public static ServiceRegistrarFactory load(Path plugin) throws ServiceRegistrarLoadingException
ServiceRegistrarFactory from a plugin jar file with a parent class loader that
will not load classes from the jvm classpath. Any dependencies of the plugin must be included
in the plugin jar.plugin - The plugin jar file to load.ServiceRegistrarFactory, null if none could be found.ServiceRegistrarLoadingException - if loading failed.public static ServiceRegistrarFactory load(Path plugin, ClassLoader environment, ClassLoader parent) throws ServiceRegistrarLoadingException
ServiceRegistrarFactory from a plugin jar file with a specified parent class
loader and a list of exposed classes.plugin - The plugin jar file to load.environment - The class loader to use for providing plugin interface dependencies.parent - The parent class loader to assign to the class loader of the jar.ServiceRegistrarFactory, null if none could be found.ServiceRegistrarLoadingException - if loading failed.public static ServiceRegistrarFactory load(String source, ClassLoader classLoader) throws ServiceRegistrarLoadingException
ServiceRegistrarFactory using a class loader.source - The source of the class loader.classLoader - The class loader to load from.ServiceRegistrarFactory, null if none could be found.ServiceRegistrarLoadingException - if loading failed.Copyright © 2015. All rights reserved.