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
AnAgentBuilder
specification that requires a resubmission specification.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.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.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.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.AgentBuilder.RedefinitionListenable.WithResubmissionSpecification
resubmitOnError()
Specifies that transformations of unloaded types that yield an error are resubmitted as transformation of the loaded type.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.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.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.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.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.
-
-
-
Method Detail
-
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 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.
-
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<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.
-
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.
-
-