Index

A B C D F G I J L M P R S T U W 
All Classes and Interfaces|All Packages|Serialized Form

A

AbstractPluginsDownloader - Class in com.fathzer.plugin.loader.utils
A class that downloads plugins from an Internet remote repository to a local folder.
AbstractPluginsDownloader(URI, Path) - Constructor for class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Constructor.
AbstractServiceClassNameBuilder<T> - Class in com.fathzer.plugin.loader.commons
An abstract ClassNameBuilder that retrieves the class names in the same way as ServiceLoader.
AbstractServiceClassNameBuilder() - Constructor for class com.fathzer.plugin.loader.commons.AbstractServiceClassNameBuilder
 

B

buildClassLoader(ClassLoader) - Method in class com.fathzer.plugin.loader.classloader.ClassLoaderPluginLoader
 
buildClassLoader(Path) - Method in class com.fathzer.plugin.loader.jar.JarPluginLoader
Builds the classloader that will be used to load the plugin classes.
buildClassLoader(T) - Method in class com.fathzer.plugin.loader.PluginLoader
Builds the classloader that will be used to load the plugin classes.

C

ClassLoaderPluginLoader - Class in com.fathzer.plugin.loader.classloader
A class able to load plugins from jar files contained in a folder.
ClassLoaderPluginLoader() - Constructor for class com.fathzer.plugin.loader.classloader.ClassLoaderPluginLoader
Constructor.
ClassNameBuilder<T> - Interface in com.fathzer.plugin.loader
A class that finds the plugin's concrete class name from a context (for instance from a manifest attribute of a jar).
clean() - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Deletes all files in local directory.
com.fathzer.plugin.loader - package com.fathzer.plugin.loader
The core classes of the plugin-loader api.
com.fathzer.plugin.loader.classloader - package com.fathzer.plugin.loader.classloader
The classes that implements PluginLoader from a ClassLoader
com.fathzer.plugin.loader.commons - package com.fathzer.plugin.loader.commons
Some common implementation classes.
com.fathzer.plugin.loader.jar - package com.fathzer.plugin.loader.jar
The classes that implements PluginLoader from jar files.
com.fathzer.plugin.loader.utils - package com.fathzer.plugin.loader.utils
Some utility classes.

D

DEFAULT - Static variable in interface com.fathzer.plugin.loader.InstanceBuilder
A default instance builder that calls the no arg public constructor of classes to build instances.
download(String...) - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Searches for plugin keys in remote repository, then downloads the corresponding jars.
downloadFile(URI, Path) - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Downloads an URI to a file.

F

FileUtils - Class in com.fathzer.plugin.loader.utils
Some utilities about files.
fromString(String) - Static method in class com.fathzer.plugin.loader.utils.LoginParser
Converts a user:pwd formatted string to a PasswordAuthentication login.
fromString(String) - Static method in class com.fathzer.plugin.loader.utils.ProxySettings
Creates a proxy setting from a string.

G

get(Class<T>) - Method in interface com.fathzer.plugin.loader.InstanceBuilder
Instantiates a new instance.
get(ClassLoader, Class<?>) - Method in class com.fathzer.plugin.loader.classloader.ServiceClassNameBuilder
 
get(String) - Method in class com.fathzer.plugin.loader.utils.PluginRegistry
Gets a plugin by its key.
get(Path, Class<?>) - Method in class com.fathzer.plugin.loader.jar.ManifestAttributeClassNameBuilder
 
get(Path, Class<?>) - Method in class com.fathzer.plugin.loader.jar.ServiceClassNameBuilder
 
get(T, Class<?>) - Method in interface com.fathzer.plugin.loader.ClassNameBuilder
Gets the class names of the plugin implementations.
getBase64Login() - Method in class com.fathzer.plugin.loader.utils.ProxySettings
Gets the login converted to a Base64 string.
getBufferedReader(InputStream) - Method in class com.fathzer.plugin.loader.commons.AbstractServiceClassNameBuilder
Gets a BufferedReader on an inputStream.
getDownloadTarget(URI) - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Gets the local path where a remote jar should be downloaded.
getFiles(Path, int, BiPredicate<Path, BasicFileAttributes>) - Static method in class com.fathzer.plugin.loader.utils.FileUtils
Gets the paths of files contained in a folder.
getHost() - Method in class com.fathzer.plugin.loader.utils.ProxySettings
Gets the proxy's host name.
getHttpClient() - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Build the http client used to connect with the remote repository.
getJarFiles(Path, int) - Static method in class com.fathzer.plugin.loader.utils.FileUtils
Gets the paths of jar files contained in a folder.
getJarRequestBuilder(URI) - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Gets the builder of the request used to download a jar.
getKeyFunction() - Method in class com.fathzer.plugin.loader.utils.PluginRegistry
Gets the key function passed to the constructor.
getLocalDirectory() - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Gets the folder where plugins jar files are loaded.
getLogin() - Method in class com.fathzer.plugin.loader.utils.ProxySettings
Gets the proxy's user login.
getPlugins(Class<V>) - Method in class com.fathzer.plugin.loader.classloader.ClassLoaderPluginLoader
Loads plugins using the context ClassLoader of the calling thread.
getPlugins(ClassLoader, Class<V>) - Method in class com.fathzer.plugin.loader.classloader.ClassLoaderPluginLoader
Gets the plugins contained in a source.
getPlugins(T, Class<V>) - Method in class com.fathzer.plugin.loader.PluginLoader
Gets the plugins contained in a source.
getPluginTypeWording() - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Gets the wording of plugins.
getPort() - Method in class com.fathzer.plugin.loader.utils.ProxySettings
Gets the proxy's port.
getRegistered() - Method in class com.fathzer.plugin.loader.utils.PluginRegistry
Gets all available plugins.
getRepositoryRequestBuilder() - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Gets the builder of the request used to query the repository.
getServiceFilePath(Class<?>) - Method in class com.fathzer.plugin.loader.commons.AbstractServiceClassNameBuilder
Gets the service definition file path for a service class.
getUri() - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Gets the remote plugin repository URI.
getURIMap() - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Gets the content of the remote repository.
getURIMap(InputStream) - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Gets the map that links a plugin key to the URI of a remote jar file from an InputStream
getURL(Path) - Static method in class com.fathzer.plugin.loader.utils.FileUtils
Gets the URL of a file
The main difference with Path.toUri().toURL() is it encapsulate the 'more than unlikely' MalformedURLException thrown by toURL() in a UncheckedIOException, making it easy to use in a lambda expression.

I

INSTANCE - Static variable in class com.fathzer.plugin.loader.jar.ServiceClassNameBuilder
An instance of this class.
InstanceBuilder - Interface in com.fathzer.plugin.loader
A class that can create instances of another class.
IS_JAR - Static variable in class com.fathzer.plugin.loader.utils.FileUtils
A predicate that matches jar files.

J

JarPluginLoader - Class in com.fathzer.plugin.loader.jar
A class able to load plugins from jar files contained in a folder.
JarPluginLoader() - Constructor for class com.fathzer.plugin.loader.jar.JarPluginLoader
Constructor.

L

LoginParser - Class in com.fathzer.plugin.loader.utils
A User:password login parser.

M

ManifestAttributeClassNameBuilder - Class in com.fathzer.plugin.loader.jar
A ClassNameBuilder that retrieves the class names in an attribute of jar's manifest.
ManifestAttributeClassNameBuilder(String) - Constructor for class com.fathzer.plugin.loader.jar.ManifestAttributeClassNameBuilder
Constructor.

P

PluginInstantiationException - Exception in com.fathzer.plugin.loader
Thrown to indicate that something went wrong during plugin instantiation.
PluginInstantiationException(String) - Constructor for exception com.fathzer.plugin.loader.PluginInstantiationException
Constructor.
PluginInstantiationException(Throwable) - Constructor for exception com.fathzer.plugin.loader.PluginInstantiationException
Constructor.
PluginLoader<T> - Class in com.fathzer.plugin.loader
A class able to load plugins from an abstract source.
PluginLoader(ClassNameBuilder<T>) - Constructor for class com.fathzer.plugin.loader.PluginLoader
Constructor.
PluginRegistry<T> - Class in com.fathzer.plugin.loader.utils
A class to manage plugins identified by a key String.
PluginRegistry(Function<T, String>) - Constructor for class com.fathzer.plugin.loader.utils.PluginRegistry
Constructor.
ProxySettings - Class in com.fathzer.plugin.loader.utils
A class that represents a proxy setting.
ProxySettings(String, int, PasswordAuthentication) - Constructor for class com.fathzer.plugin.loader.utils.ProxySettings
Constructor.

R

register(T) - Method in class com.fathzer.plugin.loader.utils.PluginRegistry
Register a plugin.
registerAll(Collection<T>) - Method in class com.fathzer.plugin.loader.utils.PluginRegistry
Register a plugins collection.

S

ServiceClassNameBuilder - Class in com.fathzer.plugin.loader.classloader
A ClassNameBuilder that retrieves the class names from a ClassLoader in the same way as ServiceLoader.
ServiceClassNameBuilder - Class in com.fathzer.plugin.loader.jar
A ClassNameBuilder that retrieves the class names from a jar file in the same way as ServiceLoader.
ServiceClassNameBuilder() - Constructor for class com.fathzer.plugin.loader.classloader.ServiceClassNameBuilder
Constructor.
ServiceClassNameBuilder() - Constructor for class com.fathzer.plugin.loader.jar.ServiceClassNameBuilder
Constructor.
setPluginTypeWording(String) - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Sets the wording of plugins.
setProxy(ProxySettings) - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Sets the proxy used to connect with remote repository.
setUrlFilter(Predicate<URL>) - Method in class com.fathzer.plugin.loader.classloader.ServiceClassNameBuilder
Sets a filter to narrow the search to some sources.
shouldLoad(URI, Path) - Method in class com.fathzer.plugin.loader.utils.AbstractPluginsDownloader
Tests whether a remote jar should be downloaded.

T

toClassNames(Stream<String>) - Method in class com.fathzer.plugin.loader.commons.AbstractServiceClassNameBuilder
Converts the lines of a service definition file to a Set of implementation class names.
toProxy() - Method in class com.fathzer.plugin.loader.utils.ProxySettings
Converts this to a java.net.Proxy instance.
toString() - Method in class com.fathzer.plugin.loader.utils.ProxySettings
 
toString(PasswordAuthentication) - Static method in class com.fathzer.plugin.loader.utils.LoginParser
Converts a PasswordAuthentication login to a String.

U

unregister(String) - Method in class com.fathzer.plugin.loader.utils.PluginRegistry
Unregister the plugin registered with a key.

W

withClassNameBuilder(ClassNameBuilder<T>) - Method in class com.fathzer.plugin.loader.PluginLoader
Sets the class name builder.
withExceptionConsumer(Consumer<PluginInstantiationException>) - Method in class com.fathzer.plugin.loader.PluginLoader
Sets the PluginInstantiation exception consumer.
withInstanceBuilder(InstanceBuilder) - Method in class com.fathzer.plugin.loader.PluginLoader
Sets the instance builder.
A B C D F G I J L M P R S T U W 
All Classes and Interfaces|All Packages|Serialized Form