Class DefaultDriverProvider

    • Constructor Detail

      • DefaultDriverProvider

        public DefaultDriverProvider()
    • Method Detail

      • getDrivers

        public Set<Driver> getDrivers()
        Description copied from interface: DriverProvider
        Returns the set of driver types and behaviour implementations to be made available by this provider.
        Specified by:
        getDrivers in interface DriverProvider
        Returns:
        set of driver types and their behaviours
      • addDrivers

        public void addDrivers​(Set<Driver> drivers)
        Adds the specified drivers to the provider.
        Parameters:
        drivers - drivers to be added
      • addDriver

        public Driver addDriver​(Driver driver)
        Adds the specified driver to the provider. If a driver with the same does not exist yet, the specified one will be added. Otherwise, the existing driver will be merged with the new one and the result will be registered.
        Parameters:
        driver - driver to be provided
        Returns:
        registered driver
      • removeDrivers

        public void removeDrivers​(Set<Driver> drivers)
        Removes the specified drivers from the provider.
        Parameters:
        drivers - drivers to be removed
      • removeDriver

        public void removeDriver​(Driver driver)
        Removes the specified driver from the provider.
        Parameters:
        driver - driver to be removed