Enum Default.Binder
- All Implemented Interfaces:
Serializable, Comparable<Default.Binder>, java.lang.constant.Constable, TargetMethodAnnotationDrivenBinder.ParameterBinder<Default>
- Enclosing class:
Default
public static enum Default.Binder
extends Enum<Default.Binder>
implements TargetMethodAnnotationDrivenBinder.ParameterBinder<Default>
A binder for the
Default annotation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceLocates the type which should be the base type of the created proxy.Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface TargetMethodAnnotationDrivenBinder.ParameterBinder
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MethodDescription.InDefinedShapeA method reference to the proxy type property.private static final MethodDescription.InDefinedShapeA method reference to the serializable proxy property.Fields inherited from interface TargetMethodAnnotationDrivenBinder.ParameterBinder
DEFAULTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(AnnotationDescription.Loadable<Default> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.The annotation type that is handled by this parameter binder.static Default.BinderReturns the enum constant of this type with the specified name.static Default.Binder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Field Details
-
SERIALIZABLE_PROXY
A method reference to the serializable proxy property. -
PROXY_TYPE
A method reference to the proxy type property.
-
-
Constructor Details
-
Binder
private Binder()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getHandledType
The annotation type that is handled by this parameter binder.- Specified by:
getHandledTypein interfaceTargetMethodAnnotationDrivenBinder.ParameterBinder<Default>- Returns:
- The
Annotation.annotationType()handled by this parameter binder.
-
bind
public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<Default> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) Creates a parameter binding for the given target parameter.- Specified by:
bindin interfaceTargetMethodAnnotationDrivenBinder.ParameterBinder<Default>- Parameters:
annotation- The annotation that was cause for the delegation to this argument binder.source- The intercepted source method.target- Tge target parameter that is subject to be bound to intercepting thesourcemethod.implementationTarget- The target of the current implementation that is subject to this binding.assigner- An assigner that can be used for applying the binding.typing- The typing to apply.- Returns:
- A parameter binding for the requested target method parameter.
-