Klasse ClosureBackedAction<T>

java.lang.Object
org.gradle.util.ClosureBackedAction<T>
Typparameter:
T - The action type.
Alle implementierten Schnittstellen:
Action<T>

@Deprecated public class ClosureBackedAction<T> extends Object implements Action<T>
Veraltet.
Will be removed in Gradle 9.0.
This class is only here to maintain binary compatibility with existing plugins.

To apply a configuration (represented by a Groovy closure) on an object, use Project.configure(Object, Closure).

  • Konstruktordetails

    • ClosureBackedAction

      public ClosureBackedAction(Closure closure)
      Veraltet.
    • ClosureBackedAction

      public ClosureBackedAction(Closure closure, int resolveStrategy)
      Veraltet.
    • ClosureBackedAction

      public ClosureBackedAction(Closure closure, int resolveStrategy, boolean configurableAware)
      Veraltet.
  • Methodendetails

    • of

      public static <T> ClosureBackedAction<T> of(Closure<?> closure)
      Veraltet.
    • execute

      public static <T> void execute(T delegate, Closure<?> closure)
      Veraltet.
    • execute

      public void execute(T delegate)
      Veraltet.
      Beschreibung aus Schnittstelle kopiert: Action
      Performs this action against the given object.
      Angegeben von:
      execute in Schnittstelle Action<T>
      Parameter:
      delegate - The object to perform the action on.
    • getClosure

      public Closure getClosure()
      Veraltet.
    • equals

      public boolean equals(Object o)
      Veraltet.
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Veraltet.
      Setzt außer Kraft:
      hashCode in Klasse Object