public static enum AgentBuilder.InstallationStrategy.Default extends Enum<AgentBuilder.InstallationStrategy.Default> implements AgentBuilder.InstallationStrategy
AgentBuilder.InstallationStrategy.Default
Enum Constant and Description |
---|
ESCALATING
An installation strategy that unregisters the transformer and propagates the exception.
|
SUPPRESSING
An installation strategy that retains the class file transformer and suppresses the error.
|
Modifier and Type | Method and Description |
---|---|
static AgentBuilder.InstallationStrategy.Default |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.InstallationStrategy.Default[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
onError
public static final AgentBuilder.InstallationStrategy.Default ESCALATING
An installation strategy that unregisters the transformer and propagates the exception. Using this strategy does not guarantee that the registered transformer was not applied to any class, nor does it attempt to revert previous transformations. It only guarantees that the class file transformer is unregistered and does no longer apply after this method returns.
Note: This installation strategy does not undo any applied class redefinitions, if such were applied.
public static final AgentBuilder.InstallationStrategy.Default SUPPRESSING
public static AgentBuilder.InstallationStrategy.Default[] values()
for (AgentBuilder.InstallationStrategy.Default c : AgentBuilder.InstallationStrategy.Default.values()) System.out.println(c);
public static AgentBuilder.InstallationStrategy.Default valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2017. All rights reserved.