Record Class BaseKubeProcessor.DecoratorsContext

java.lang.Object
java.lang.Record
io.quarkus.kubernetes.deployment.BaseKubeProcessor.DecoratorsContext
Record Components:
decorators - The ongoing list of DecoratorBuildItem being populated
target - The deployment target (e.g. kubernetes, openshift, knative)
name - The name of the resource to accept the configuration param namespace
done - Whether the processing of decorators is done or not
Enclosing class:
BaseKubeProcessor<P,C extends PlatformConfiguration>

protected static record BaseKubeProcessor.DecoratorsContext(List<io.quarkus.kubernetes.spi.DecoratorBuildItem> decorators, String target, String name, boolean done) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static BaseKubeProcessor.DecoratorsContext
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DecoratorsContext(List<io.quarkus.kubernetes.spi.DecoratorBuildItem> decorators, String target, String name, boolean done)
    Creates an instance of a DecoratorsContext record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    add(io.dekorate.kubernetes.decorator.Decorator<?> decorator)
     
    (package private) void
    addAll(List<io.quarkus.kubernetes.spi.DecoratorBuildItem> others)
     
    (package private) void
    addToAnyTarget(io.dekorate.kubernetes.decorator.Decorator<?> decorator)
     
    (package private) void
    addToTarget(io.dekorate.kubernetes.decorator.Decorator<?> decorator, String target)
     
    List<io.quarkus.kubernetes.spi.DecoratorBuildItem>
    Returns the value of the decorators record component.
    (package private) <D extends io.dekorate.kubernetes.decorator.Decorator<?>>
    List<D>
     
    boolean
    Returns the value of the done record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    (package private) boolean
    isValidTarget(io.quarkus.kubernetes.spi.DecoratorBuildItem decorator)
     
    (package private) boolean
    isValidTarget(io.quarkus.kubernetes.spi.Targetable targetable)
     
    (package private) boolean
     
    Returns the value of the name record component.
    (package private) static BaseKubeProcessor.DecoratorsContext
    newContext(String target, String name)
     
    Returns the value of the target record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • DecoratorsContext

      protected DecoratorsContext(List<io.quarkus.kubernetes.spi.DecoratorBuildItem> decorators, String target, String name, boolean done)
      Creates an instance of a DecoratorsContext record class.
      Parameters:
      decorators - the value for the decorators record component
      target - the value for the target record component
      name - the value for the name record component
      done - the value for the done record component
  • Method Details

    • newContext

      static BaseKubeProcessor.DecoratorsContext newContext(String target, String name)
    • addToTarget

      void addToTarget(io.dekorate.kubernetes.decorator.Decorator<?> decorator, String target)
    • add

      void add(io.dekorate.kubernetes.decorator.Decorator<?> decorator)
    • addToAnyTarget

      void addToAnyTarget(io.dekorate.kubernetes.decorator.Decorator<?> decorator)
    • addAll

      void addAll(List<io.quarkus.kubernetes.spi.DecoratorBuildItem> others)
    • isValidTarget

      boolean isValidTarget(String target)
    • isValidTarget

      boolean isValidTarget(io.quarkus.kubernetes.spi.DecoratorBuildItem decorator)
    • isValidTarget

      boolean isValidTarget(io.quarkus.kubernetes.spi.Targetable targetable)
    • decoratorsOfType

      <D extends io.dekorate.kubernetes.decorator.Decorator<?>> List<D> decoratorsOfType(Class<D> clazz)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • decorators

      public List<io.quarkus.kubernetes.spi.DecoratorBuildItem> decorators()
      Returns the value of the decorators record component.
      Returns:
      the value of the decorators record component
    • target

      public String target()
      Returns the value of the target record component.
      Returns:
      the value of the target record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • done

      public boolean done()
      Returns the value of the done record component.
      Returns:
      the value of the done record component