Interface DroneInstanceEnhancer<T>

  • All Superinterfaces:
    Sortable

    @Deprecated
    public interface DroneInstanceEnhancer<T>
    extends Sortable
    Deprecated.
    Enhances Drone instance in order to give it additional capabilities.
    Author:
    Karel Piwko, Lukas Fryc
    • Method Detail

      • canEnhance

        boolean canEnhance​(InstanceOrCallableInstance instance,
                           Class<?> droneType,
                           Class<? extends Annotation> qualifier)
        Deprecated.
        Returns true when this DroneInstanceEnhancer is able to enhance or deenhance given type.
        Parameters:
        instance - instance of Drone to be enhanced / deenhanced
        droneType - the field or parameter type defined in test
        qualifier - the qualifier associated with the injected type
        Returns:
        true when this DroneInstanceEnhancer is able to enhance or deenhance given type, false otherwise
      • enhance

        T enhance​(T instance,
                  Class<? extends Annotation> qualifier)
        Deprecated.

        Takes the instance instantiated by Drone and returns its enhanced version.

        Parameters:
        instance - the instance to be enhanced
        qualifier - the qualifier associated with an instance
        Returns:
        the enhanced instance
      • deenhance

        T deenhance​(T enhancedInstance,
                    Class<? extends Annotation> qualifier)
        Deprecated.

        Takes the instance which was previously enhanced by enhance(Object, Class) method and cancels the enhancement.

        Parameters:
        enhancedInstance - the instance which was previously enhanced by #enhance(Object).
        qualifier - the qualifier associated with an instance
        Returns:
        the deenhanced instance