Class DefaultClassTransformerRegistry

java.lang.Object
eu.cloudnetservice.wrapper.transform.DefaultClassTransformerRegistry
All Implemented Interfaces:
ClassTransformerRegistry

@Singleton public final class DefaultClassTransformerRegistry extends Object implements ClassTransformerRegistry
The default implementation of a class transformer registry.
Since:
4.0
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • instrumentation

      private final Instrumentation instrumentation
  • Constructor Details

    • DefaultClassTransformerRegistry

      public DefaultClassTransformerRegistry(@NonNull @NonNull Instrumentation instrumentation)
      Constructs a new default transformer registry using the given instrumentation.
      Parameters:
      instrumentation - the instrumentation to use to register class transformers.
      Throws:
      NullPointerException - if the given instrumentation instance is null.
  • Method Details

    • registerTransformer

      public void registerTransformer(@NonNull @NonNull ClassTransformer transformer)
      Registers the given transformer into this registry. There is no guarantee that calling this method with the same transformer twice will result in a single registration.
      Specified by:
      registerTransformer in interface ClassTransformerRegistry
      Parameters:
      transformer - the transformer to register into this registry.