public interface Loader
ServiceLoader
, but applications may choose to override with their own strategy if needed,
for example when running in OSGI environments.Modifier and Type | Field and Description |
---|---|
static Loader |
SERVICE_LOADER
The default
Loader implementation used throughout the HTTP
framework. |
Modifier and Type | Method and Description |
---|---|
<S> S |
load(Class<S> service,
Options options)
Loads a service of the specified type.
|
static final Loader SERVICE_LOADER
Loader
implementation used throughout the HTTP
framework. This implementation uses ServiceLoader
for loading
services.<S> S load(Class<S> service, Options options)
S
- The type of service to load.service
- The type of service to load.options
- The user provided options.null
if no corresponding service
was found.Copyright © 2010-2018, ForgeRock All Rights Reserved.