Class SupportiveDriver

  • All Implemented Interfaces:
    Driver

    public abstract class SupportiveDriver
    extends Object
    implements Driver
    Allows to declare supported operator classes.
    • Constructor Detail

      • SupportiveDriver

        public SupportiveDriver​(Class[] supported)
        Creates an instance.
        Parameters:
        supported - Array of operator classes which are supported by this driver.
    • Method Detail

      • checkSupported

        public void checkSupported​(ComponentOperator oper)
        Throws UnsupportedOperatorException exception if parameter's class is not in list of supported classes.
        Parameters:
        oper - Operator whose class should be checked.
        Throws:
        UnsupportedOperatorException
      • getSupported

        public Class[] getSupported()
        Returns array of operator classes which are supported by this driver.
        Specified by:
        getSupported in interface Driver
        Returns:
        an array of supported operators' classes.