public abstract class HostAccessorProvider extends Object implements com.palantir.giraffe.internal.SchemeIdentifiable
HostAccessor
s.
An host accessor provider is a concrete implementation of this class that has
a zero argument constructor. Providers are identified by their URI
scheme. URI schemes are case-insensitive. The
default provider is identified by the URI scheme "local". It provides an
accessor for the host running the Java Virtual Machine.
Providers are loaded using the standard service-loading functionality
implemented by the ServiceLoader
class. Providers are typically
installed by adding a JAR file to the application's classpath. The JAR file
contains a configuration file named
com.palantir.giraffe.host.spi.HostAccessorProvider
in the resource
directory META-INF/services
. This file lists one or more fully
qualified names of concrete implementations of this class. The order of
loaded providers is implementation specific. If two providers have the same
URI scheme the most recently loaded duplicate is discarded.
All of the methods in this class are safe for use by multiple threads.
Constructor and Description |
---|
HostAccessorProvider() |
Modifier and Type | Method and Description |
---|---|
static List<HostAccessorProvider> |
installedProviders() |
abstract HostAccessor |
newAccessor(SystemRequest request) |
public static List<HostAccessorProvider> installedProviders()
public abstract HostAccessor newAccessor(SystemRequest request)