Class MixinApplicator

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.MixinApplicator
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:35.605Z") @Stability(Stable) public class MixinApplicator extends software.amazon.jsii.JsiiObject
Applies mixins to constructs.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 IConstructSelector constructSelector;
 MixinApplicator mixinApplicator = new MixinApplicator(this, constructSelector);
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    MixinApplicator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    MixinApplicator(software.amazon.jsii.JsiiObjectRef objRef)
     
     
    MixinApplicator(software.constructs.IConstruct scope)
     
     
    MixinApplicator(software.constructs.IConstruct scope, IConstructSelector selector)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(software.constructs.IMixin... mixins)
    Applies a mixin to selected constructs.
    Returns the successful mixin applications.
    List<software.constructs.IConstruct>
    The constructs that match the selector in the given scope.
    Requires all selected constructs to support the applied mixins.
    Requires at least one mixin to be successfully applied.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • MixinApplicator

      protected MixinApplicator(software.amazon.jsii.JsiiObjectRef objRef)
    • MixinApplicator

      protected MixinApplicator(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • MixinApplicator

      @Stability(Stable) public MixinApplicator(@NotNull software.constructs.IConstruct scope, @Nullable IConstructSelector selector)
      Parameters:
      scope - This parameter is required.
      selector -
    • MixinApplicator

      @Stability(Stable) public MixinApplicator(@NotNull software.constructs.IConstruct scope)
      Parameters:
      scope - This parameter is required.
  • Method Details

    • apply

      @Stability(Stable) @NotNull public MixinApplicator apply(@NotNull software.constructs.IMixin... mixins)
      Applies a mixin to selected constructs.

      Parameters:
      mixins - This parameter is required.
    • requireAll

      @Stability(Stable) @NotNull public MixinApplicator requireAll()
      Requires all selected constructs to support the applied mixins.

      Will only check for future call of apply(). Set this before calling apply() to take effect.

      Example:

       Mixins.of(scope).requireAll().apply(new MyMixin());
       
    • requireAny

      @Stability(Stable) @NotNull public MixinApplicator requireAny()
      Requires at least one mixin to be successfully applied.

      Will only check for future call of apply(). Set this before calling apply() to take effect.

      Example:

       Mixins.of(scope).requireAny().apply(new MyMixin());
       
    • getReport

      @Stability(Stable) @NotNull public List<MixinApplication> getReport()
      Returns the successful mixin applications.
    • getSelectedConstructs

      @Stability(Stable) @NotNull public List<software.constructs.IConstruct> getSelectedConstructs()
      The constructs that match the selector in the given scope.