Package feign
Class Feign
- java.lang.Object
-
- feign.Feign
-
- Direct Known Subclasses:
ReflectiveFeign
public abstract class Feign extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Feign.Builder
-
Constructor Summary
Constructors Constructor Description Feign()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Feign.Builder
builder()
static java.lang.String
configKey(java.lang.Class targetType, java.lang.reflect.Method method)
Configuration keys are formatted as unresolved see tags.static java.lang.String
configKey(java.lang.reflect.Method method)
Deprecated.useconfigKey(Class, Method)
instead.abstract <T> T
newInstance(Target<T> target)
Returns a new instance of an HTTP API, defined by annotations in theContract
, for the specifiedtarget
.
-
-
-
Method Detail
-
builder
public static Feign.Builder builder()
-
configKey
public static java.lang.String configKey(java.lang.Class targetType, java.lang.reflect.Method method)
Configuration keys are formatted as unresolved see tags. This method exposes that format, in case you need to create the same value asMethodMetadata.configKey()
for correlation purposes.Here are some sample encodings:
Route53
: would match a classroute53.Route53
Route53#list()
: would match a methodroute53.Route53#list()
Route53#listAt(Marker)
: would match a methodroute53.Route53#listAt(Marker)
Route53#listByNameAndType(String, String)
: would match a methodroute53.Route53#listAt(String, String)
- Parameters:
targetType
-type
of the Feign interface.method
- invoked method, present ontype
or its super.- See Also:
MethodMetadata.configKey()
-
configKey
@Deprecated public static java.lang.String configKey(java.lang.reflect.Method method)
Deprecated.useconfigKey(Class, Method)
instead.
-
-