Class SupportiveDriver

  • All Implemented Interfaces:
    Driver

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

      Constructors 
      Constructor Description
      SupportiveDriver​(java.lang.Class[] supported)
      Creates an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void checkSupported​(ComponentOperator oper)
      Throws UnsupportedOperatorException exception if parameter's class is not in list of supported classes.
      java.lang.Class[] getSupported()
      Returns array of operator classes which are supported by this driver.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SupportiveDriver

        public SupportiveDriver​(java.lang.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 java.lang.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.