Package io.quarkus.kubernetes.deployment
Record Class BaseKubeProcessor.DecoratorsContext
java.lang.Object
java.lang.Record
io.quarkus.kubernetes.deployment.BaseKubeProcessor.DecoratorsContext
- Record Components:
decorators- The ongoing list ofDecoratorBuildItembeing populatedtarget- The deployment target (e.g. kubernetes, openshift, knative)name- The name of the resource to accept the configuration param namespacedone- Whether the processing of decorators is done or not
- Enclosing class:
BaseKubeProcessor<P,C extends PlatformConfiguration>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDecoratorsContext(List<io.quarkus.kubernetes.spi.DecoratorBuildItem> decorators, String target, String name, boolean done) Creates an instance of aDecoratorsContextrecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(io.dekorate.kubernetes.decorator.Decorator<?> decorator) (package private) void(package private) voidaddToAnyTarget(io.dekorate.kubernetes.decorator.Decorator<?> decorator) (package private) voidaddToTarget(io.dekorate.kubernetes.decorator.Decorator<?> decorator, String target) List<io.quarkus.kubernetes.spi.DecoratorBuildItem> Returns the value of thedecoratorsrecord component.(package private) <D extends io.dekorate.kubernetes.decorator.Decorator<?>>
List<D> decoratorsOfType(Class<D> clazz) booleandone()Returns the value of thedonerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.(package private) booleanisValidTarget(io.quarkus.kubernetes.spi.DecoratorBuildItem decorator) (package private) booleanisValidTarget(io.quarkus.kubernetes.spi.Targetable targetable) (package private) booleanisValidTarget(String target) name()Returns the value of thenamerecord component.(package private) static BaseKubeProcessor.DecoratorsContextnewContext(String target, String name) target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
empty
-
-
Constructor Details
-
DecoratorsContext
protected DecoratorsContext(List<io.quarkus.kubernetes.spi.DecoratorBuildItem> decorators, String target, String name, boolean done) Creates an instance of aDecoratorsContextrecord class.- Parameters:
decorators- the value for thedecoratorsrecord componenttarget- the value for thetargetrecord componentname- the value for thenamerecord componentdone- the value for thedonerecord component
-
-
Method Details
-
newContext
-
addToTarget
-
add
void add(io.dekorate.kubernetes.decorator.Decorator<?> decorator) -
addToAnyTarget
void addToAnyTarget(io.dekorate.kubernetes.decorator.Decorator<?> decorator) -
addAll
-
isValidTarget
-
isValidTarget
boolean isValidTarget(io.quarkus.kubernetes.spi.DecoratorBuildItem decorator) -
isValidTarget
boolean isValidTarget(io.quarkus.kubernetes.spi.Targetable targetable) -
decoratorsOfType
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
decorators
Returns the value of thedecoratorsrecord component.- Returns:
- the value of the
decoratorsrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
done
public boolean done()Returns the value of thedonerecord component.- Returns:
- the value of the
donerecord component
-