public class ProviderLoader<T extends ProviderLoader<T>> extends Object
Constructor and Description |
---|
ProviderLoader(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
argument()
An argument to be passed into the constructor as the Provider is
instantiated.
|
T |
argument(String value)
An argument to be passed into the constructor as the Provider is
instantiated.
|
T |
className(String value)
The fully qualified class names of the providers to load, these are
loaded after the service-loader discovered providers and duplicates will
be skipped.
|
List<String> |
classNames()
The fully qualified class names of the providers to load, these are
loaded after the service-loader discovered providers and duplicates will
be skipped.
|
T |
classNames(List<String> value)
The fully qualified class names of the providers to load, these are
loaded after the service-loader discovered providers and duplicates will
be skipped.
|
T |
classNames(String... args)
The fully qualified class names of the providers to load, these are
loaded after the service-loader discovered providers and duplicates will
be skipped.
|
Map |
configuration()
The key/value configuration to be passed to the Provider to initialise
it.
|
T |
configuration(Map value)
The key/value configuration to be passed to the Provider to initialise
it.
|
T |
configuration(String key,
Object value)
The key/value configuration to be passed to the Provider to initialise
it.
|
String |
getKey() |
T |
loadedProvider(Map value)
The list of providers loaded by this provider loader.
|
List<Map> |
loadedProviders()
The list of providers loaded by this provider loader.
|
T |
loadedProviders(List<Map> value)
The list of providers loaded by this provider loader.
|
T |
loadedProviders(Map... args)
The list of providers loaded by this provider loader.
|
String |
module()
The name of the module to load the provider from.
|
T |
module(String value)
The name of the module to load the provider from.
|
String |
path()
The path of the file to use to initialise the providers.
|
T |
path(String value)
The path of the file to use to initialise the providers.
|
String |
relativeTo()
The base path of the configuration file.
|
T |
relativeTo(String value)
The base path of the configuration file.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
public ProviderLoader(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public List<Map> loadedProviders()
public T loadedProviders(List<Map> value)
public T loadedProvider(Map value)
public T loadedProviders(Map... args)
public List<String> classNames()
public T classNames(List<String> value)
public T className(String value)
public T classNames(String... args)
public String module()
public String argument()
public T argument(String value)
public Map configuration()
public T configuration(Map value)
public T configuration(String key, Object value)
public String path()
public String relativeTo()
Copyright © 2018 JBoss by Red Hat. All rights reserved.