Package net.bytebuddy.agent.builder
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 Summary
Modifier and TypeMethodDescriptionSpecifies 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.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.resubmitImmediate
(ElementMatcher<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.resubmitImmediate
(ElementMatcher<String> typeNameMatcher, ElementMatcher<? super 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.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.Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type.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.resubmitOnError
(ElementMatcher<? super 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.resubmitOnError
(ElementMatcher<? super Throwable> exceptionMatcher, ElementMatcher<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.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.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.
-
Method Details
-
resubmitOnError
AgentBuilder.RedefinitionListenable.WithResubmissionSpecification 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
AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitOnError(ElementMatcher<? super 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 Throwable> exceptionMatcher, ElementMatcher<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 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
AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitOnError(AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher matcher) 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
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<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<String> typeNameMatcher, ElementMatcher<? super 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<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
AgentBuilder.RedefinitionListenable.WithResubmissionSpecification resubmitImmediate(AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher matcher) 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.
-