Class Default.Binder.TypeLocator.ForType
java.lang.Object
net.bytebuddy.implementation.bind.annotation.Default.Binder.TypeLocator.ForType
- All Implemented Interfaces:
Default.Binder.TypeLocator
- Enclosing interface:
Default.Binder.TypeLocator
@Enhance
public static class Default.Binder.TypeLocator.ForType
extends Object
implements Default.Binder.TypeLocator
A type locator that returns a given type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Default.Binder.TypeLocator
Default.Binder.TypeLocator.ForParameterType, Default.Binder.TypeLocator.ForType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescriptionThe type to be returned upon resolution. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedForType(TypeDescription typeDescription) Creates a new type locator for a given type. -
Method Summary
Modifier and TypeMethodDescriptionprotected static Default.Binder.TypeLocatorof(TypeDescription typeDescription) Resolves a type locator based upon an annotation value.resolve(TypeDescription.Generic parameterType) Resolves the target type.
-
Field Details
-
typeDescription
The type to be returned upon resolution.
-
-
Constructor Details
-
ForType
Creates a new type locator for a given type.- Parameters:
typeDescription- The type to be returned upon resolution.
-
-
Method Details
-
of
Resolves a type locator based upon an annotation value.- Parameters:
typeDescription- The annotation's value.- Returns:
- The appropriate type locator.
-
resolve
Resolves the target type.- Specified by:
resolvein interfaceDefault.Binder.TypeLocator- Parameters:
parameterType- The type of the target parameter.- Returns:
- The proxy type.
-