protected static class AgentBuilder.Default.Redefining extends AgentBuilder.Default implements AgentBuilder.RedefinitionListenable.WithoutBatchStrategy
AgentBuilder.Default.BootstrapInjectionStrategy, AgentBuilder.Default.Delegator<T extends AgentBuilder.Matchable<T>>, AgentBuilder.Default.Dispatcher, AgentBuilder.Default.ExecutingTransformer, AgentBuilder.Default.Ignoring, AgentBuilder.Default.NativeMethodStrategy, AgentBuilder.Default.Redefining, AgentBuilder.Default.Transformation, AgentBuilder.Default.TransformingAgentBuilder.RedefinitionListenable.WithImplicitDiscoveryStrategy, AgentBuilder.RedefinitionListenable.WithoutBatchStrategyAgentBuilder.CircularityLock, AgentBuilder.ClassFileBufferStrategy, AgentBuilder.Default, AgentBuilder.DescriptionStrategy, AgentBuilder.FallbackStrategy, AgentBuilder.Identified, AgentBuilder.Ignored, AgentBuilder.InitializationStrategy, AgentBuilder.InstallationListener, AgentBuilder.LambdaInstrumentationStrategy, AgentBuilder.Listener, AgentBuilder.LocationStrategy, AgentBuilder.Matchable<T extends AgentBuilder.Matchable<T>>, AgentBuilder.PoolStrategy, AgentBuilder.RawMatcher, AgentBuilder.RedefinitionListenable, AgentBuilder.RedefinitionStrategy, AgentBuilder.Transformer, AgentBuilder.TransformerDecorator, AgentBuilder.TypeStrategybootstrapInjectionStrategy, byteBuddy, circularityLock, classFileBufferStrategy, descriptionStrategy, fallbackStrategy, ignoredTypeMatcher, initializationStrategy, installationListener, lambdaInstrumentationStrategy, listener, locationStrategy, nativeMethodStrategy, poolStrategy, redefinitionBatchAllocator, redefinitionDiscoveryStrategy, redefinitionListener, redefinitionResubmissionStrategy, redefinitionStrategy, transformation, typeStrategy| Modifier and Type | Method and Description |
|---|---|
AgentBuilder.RedefinitionListenable |
redefineOnly(Class<?>... type)
Limits the redefinition attempt to the specified types.
|
AgentBuilder.RedefinitionListenable.WithImplicitDiscoveryStrategy |
with(AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator)
A batch allocator is responsible for diving a redefining of existing types into several chunks.
|
AgentBuilder.RedefinitionListenable |
with(AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy)
A discovery strategy is responsible for locating loaded types that should be considered for redefinition.
|
AgentBuilder.RedefinitionListenable |
with(AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
A redefinition listener is invoked before each batch of type redefinitions and on every error as well as
after the redefinition was completed.
|
AgentBuilder |
withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
AgentBuilder |
withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler,
ElementMatcher<? super Throwable> matcher)
Enables resubmission of failed transformations by applying a retransformation of the loaded type.
|
assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeTo, assureReadEdgeTo, assureReadEdgeTo, disableBootstrapInjection, disableClassFormatChanges, disableNativeMethodPrefix, enableBootstrapInjection, enableNativeMethodPrefix, enableUnsafeBootstrapInjection, ignore, ignore, ignore, ignore, installOn, installOn, installOnByteBuddyAgent, installOnByteBuddyAgent, makeRaw, of, of, of, of, of, of, of, of, type, type, type, type, with, with, with, with, with, with, with, with, with, with, with, with, withclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeFromAndTo, assureReadEdgeTo, assureReadEdgeTo, assureReadEdgeTo, disableBootstrapInjection, disableClassFormatChanges, disableNativeMethodPrefix, enableBootstrapInjection, enableNativeMethodPrefix, enableUnsafeBootstrapInjection, ignore, ignore, ignore, ignore, installOn, installOn, installOnByteBuddyAgent, installOnByteBuddyAgent, makeRaw, type, type, type, type, with, with, with, with, with, with, with, with, with, with, with, with, withprotected Redefining(ByteBuddy byteBuddy, AgentBuilder.Listener listener, AgentBuilder.CircularityLock circularityLock, AgentBuilder.PoolStrategy poolStrategy, AgentBuilder.TypeStrategy typeStrategy, AgentBuilder.LocationStrategy locationStrategy, AgentBuilder.Default.NativeMethodStrategy nativeMethodStrategy, AgentBuilder.InitializationStrategy initializationStrategy, AgentBuilder.RedefinitionStrategy redefinitionStrategy, AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy, AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator, AgentBuilder.RedefinitionStrategy.Listener redefinitionListener, AgentBuilder.RedefinitionStrategy.ResubmissionStrategy redefinitionResubmissionStrategy, AgentBuilder.Default.BootstrapInjectionStrategy bootstrapInjectionStrategy, AgentBuilder.LambdaInstrumentationStrategy lambdaInstrumentationStrategy, AgentBuilder.DescriptionStrategy descriptionStrategy, AgentBuilder.FallbackStrategy fallbackStrategy, AgentBuilder.ClassFileBufferStrategy classFileBufferStrategy, AgentBuilder.InstallationListener installationListener, AgentBuilder.RawMatcher ignoredTypeMatcher, AgentBuilder.Default.Transformation transformation)
byteBuddy - The Byte Buddy instance to be used.listener - The listener to notify on transformations.circularityLock - The circularity lock to use.poolStrategy - The type locator to use.typeStrategy - The definition handler to use.locationStrategy - The location strategy to use.nativeMethodStrategy - The native method strategy to apply.initializationStrategy - The initialization strategy to use for transformed types.redefinitionStrategy - The redefinition strategy to apply.redefinitionDiscoveryStrategy - The discovery strategy for loaded types to be redefined.redefinitionBatchAllocator - The batch allocator for the redefinition strategy to apply.redefinitionListener - The redefinition listener for the redefinition strategy to apply.redefinitionResubmissionStrategy - The resubmission strategy to apply.bootstrapInjectionStrategy - The injection strategy for injecting classes into the bootstrap class loader.lambdaInstrumentationStrategy - A strategy to determine of the LambdaMetafactory should be instrumented to allow for the
instrumentation of classes that represent lambda expressions.descriptionStrategy - The description strategy for resolving type descriptions for types.fallbackStrategy - The fallback strategy to apply.classFileBufferStrategy - The class file buffer strategy to use.installationListener - The installation listener to notify.ignoredTypeMatcher - Identifies types that should not be instrumented.transformation - The transformation object for handling type transformations.public AgentBuilder.RedefinitionListenable.WithImplicitDiscoveryStrategy with(AgentBuilder.RedefinitionStrategy.BatchAllocator redefinitionBatchAllocator)
AgentBuilder.RedefinitionStrategy.Listener
action between chunks.with in interface AgentBuilder.RedefinitionListenable.WithoutBatchStrategyredefinitionBatchAllocator - The batch allocator to use.public AgentBuilder.RedefinitionListenable redefineOnly(Class<?>... type)
redefineOnly in interface AgentBuilder.RedefinitionListenable.WithImplicitDiscoveryStrategytype - The types to consider for redefinition.public AgentBuilder.RedefinitionListenable with(AgentBuilder.RedefinitionStrategy.DiscoveryStrategy redefinitionDiscoveryStrategy)
with in interface AgentBuilder.RedefinitionListenable.WithImplicitDiscoveryStrategyredefinitionDiscoveryStrategy - The redefinition discovery strategy to use.public AgentBuilder.RedefinitionListenable with(AgentBuilder.RedefinitionStrategy.Listener redefinitionListener)
A redefinition listener is invoked before each batch of type redefinitions and on every error as well as after the redefinition was completed. A redefinition listener can be used for debugging or logging purposes and to apply actions between each batch, e.g. to pause or wait in order to avoid rendering the current VM non-responsive if a lot of classes are redefined.
Adding several listeners does not replace previous listeners but applies them in the registration order.
with in interface AgentBuilder.RedefinitionListenableredefinitionListener - The listener to register.public AgentBuilder withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler)
withResubmission in interface AgentBuilder.RedefinitionListenableresubmissionScheduler - A scheduler which is responsible for scheduling the resubmission job.public AgentBuilder withResubmission(AgentBuilder.RedefinitionStrategy.ResubmissionScheduler resubmissionScheduler, ElementMatcher<? super Throwable> matcher)
withResubmission in interface AgentBuilder.RedefinitionListenableresubmissionScheduler - A scheduler which is responsible for scheduling the resubmission job.matcher - A matcher that filters throwable instances where non-matched throwables are not triggering a resubmission.Copyright © 2014–2019. All rights reserved.