public class DefaultDriverProvider extends java.lang.Object implements DriverProvider
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,Driver> |
drivers |
Constructor and Description |
---|
DefaultDriverProvider() |
Modifier and Type | Method and Description |
---|---|
Driver |
addDriver(Driver driver)
Adds the specified driver to the provider.
|
void |
addDrivers(java.util.Set<Driver> drivers)
Adds the specified drivers to the provider.
|
java.util.Set<Driver> |
getDrivers()
Returns the set of driver types and behaviour implementations to be
made available by this provider.
|
void |
removeDriver(Driver driver)
Removes the specified driver from the provider.
|
void |
removeDrivers(java.util.Set<Driver> drivers)
Removes the specified drivers from the provider.
|
java.lang.String |
toString() |
protected final java.util.Map<java.lang.String,Driver> drivers
public java.util.Set<Driver> getDrivers()
DriverProvider
getDrivers
in interface DriverProvider
public void addDrivers(java.util.Set<Driver> drivers)
drivers
- drivers to be addedpublic Driver addDriver(Driver driver)
driver
- driver to be providedpublic void removeDrivers(java.util.Set<Driver> drivers)
drivers
- drivers to be removedpublic void removeDriver(Driver driver)
driver
- driver to be removedpublic java.lang.String toString()
toString
in class java.lang.Object