Interface AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification

All Known Subinterfaces:
AgentBuilder.RedefinitionListenable.WithResubmissionSpecification
All Known Implementing Classes:
AgentBuilder.Default.Redefining.WithResubmission
Enclosing interface:
AgentBuilder.RedefinitionListenable

public static interface AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification
An AgentBuilder specification that requires a resubmission specification.
  • Method Details

    • resubmitOnError

      Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitOnError

      Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matcher matches the type in question.
      Parameters:
      exceptionMatcher - Determines if a type should be resubmitted upon a given exception.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitOnError

      Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matchers match the type in question.
      Parameters:
      exceptionMatcher - Determines if a type should be resubmitted upon a given exception.
      typeNameMatcher - Determines if a type should be resubmitted if the type has a given name.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitOnError

      AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher)
      Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matchers match the type in question.
      Parameters:
      exceptionMatcher - Determines if a type should be resubmitted upon a given exception.
      typeNameMatcher - Determines if a type should be resubmitted if the type has a given name.
      classLoaderMatcher - Determines if a type should be resubmitted upon being loaded by a given class loader.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitOnError

      AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitOnError(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
      Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matchers match the type in question.
      Parameters:
      exceptionMatcher - Determines if a type should be resubmitted upon a given exception.
      typeNameMatcher - Determines if a type should be resubmitted if the type has a given name.
      classLoaderMatcher - Determines if a type should be resubmitted upon being loaded by a given class loader.
      moduleMatcher - Determines if a type should be resubmitted upon a given Java module.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitOnError

      Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type, given that the specified matcher matches the type in question.
      Parameters:
      matcher - Determines if a type should be resubmitted.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitImmediate

      Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitImmediate

      Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.
      Parameters:
      typeNameMatcher - Determines if a type should be resubmitted if the type has a given name.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitImmediate

      Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.
      Parameters:
      typeNameMatcher - Determines if a type should be resubmitted if the type has a given name.
      classLoaderMatcher - Determines if a type should be resubmitted upon being loaded by a given class loader.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitImmediate

      AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitImmediate(ElementMatcher<String> typeNameMatcher, ElementMatcher<? super ClassLoader> classLoaderMatcher, ElementMatcher<? super JavaModule> moduleMatcher)
      Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.
      Parameters:
      typeNameMatcher - Determines if a type should be resubmitted if the type has a given name.
      classLoaderMatcher - Determines if a type should be resubmitted upon being loaded by a given class loader.
      moduleMatcher - Determines if a type should be resubmitted upon a given Java module.
      Returns:
      A new agent builder that allows for further resubmission specifications.
    • resubmitImmediate

      Specifies that transformations of unloaded types should not be transformed when they are loaded for the first time but should rather be resubmitted after they are loaded.
      Parameters:
      matcher - Determines if a type should be resubmitted.
      Returns:
      A new agent builder that allows for further resubmission specifications.