public class ServiceProviderConfiguration extends Object
| Constructor and Description |
|---|
ServiceProviderConfiguration(String service) |
ServiceProviderConfiguration(String service,
List<String> providers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProvider(String provider)
Adds the given provider to the service configuration.
|
List<String> |
getProviders()
Gets an immutable-view of the provider classes.
|
String |
getService()
Gets the name of the service class.
|
void |
read(InputStream is)
Reads a service provider configuration from the given
InputStream. |
void |
write(OutputStream os)
Writes the service provider configuration to the given
OutputStream. |
public ServiceProviderConfiguration(String service, List<String> providers)
public ServiceProviderConfiguration(String service)
public final String getService()
public final List<String> getProviders()
public final void addProvider(String provider)
provider - The providerpublic void read(InputStream is) throws IOException
InputStream.is - The input streamIOException - If an I/O error occurspublic void write(OutputStream os) throws IOException
OutputStream.os - The output streamIOException - If an I/O error occurs