@Retention(value=RUNTIME) @Target(value=TYPE) public @interface ClassSubstitution
MethodSubstitution
.Modifier and Type | Optional Element and Description |
---|---|
String[] |
className
Specifies the original class or classes if a single class is being used for multiple
substitutions.
|
Class<? extends SubstitutionGuard> |
defaultGuard
Determines if the substitutions in a class are globally enabled.
|
boolean |
optional
Determines if the substitutions are for classes that may not be part of the runtime.
|
Class<?> |
value
Specifies the original class.
|
public abstract Class<?> value
If the default value is specified for this element, then a non-default value must be given
for the className()
element.
public abstract String[] className
This method is provided for cases where the original class is not accessible (according to Java language access control rules).
If the default value is specified for this element, then a non-default value must be given
for the value()
element.
public abstract boolean optional
public abstract Class<? extends SubstitutionGuard> defaultGuard