Interface AgentBuilder.RedefinitionListenable.WithoutResubmissionSpecification

    • Method Detail

      • resubmitOnError

        AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitOnError​(ElementMatcher<? super java.lang.Throwable> exceptionMatcher)
        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

        AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitOnError​(ElementMatcher<? super java.lang.Throwable> exceptionMatcher,
                                                                                          ElementMatcher<java.lang.String> typeNameMatcher)
        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 java.lang.Throwable> exceptionMatcher,
                                                                                          ElementMatcher<java.lang.String> typeNameMatcher,
                                                                                          ElementMatcher<? super java.lang.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 java.lang.Throwable> exceptionMatcher,
                                                                                          ElementMatcher<java.lang.String> typeNameMatcher,
                                                                                          ElementMatcher<? super java.lang.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.
      • resubmitImmediate

        AgentBuilder.RedefinitionListenable.WithResubmissionSpecification 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

        AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitImmediate​(ElementMatcher<java.lang.String> typeNameMatcher)
        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

        AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitImmediate​(ElementMatcher<java.lang.String> typeNameMatcher,
                                                                                            ElementMatcher<? super java.lang.ClassLoader> classLoaderMatcher)
        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<java.lang.String> typeNameMatcher,
                                                                                            ElementMatcher<? super java.lang.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.