@Retention(value=RUNTIME) @Target(value=TYPE_USE) @Documented public @interface ExtractedValue
ValueExtractor
is tied.
Must be given exactly once for a value extractor type.
ValueExtractor
Modifier and Type | Optional Element and Description |
---|---|
Class<?> |
type
Returns the type of the value extracted by the
ValueExtractor . |
public abstract Class<?> type
ValueExtractor
. If not set, returns
Void.class
, meaning the type will be automatically inferred from the type argument
of the parameterized type.
Used to define value extractors for non-generic wrapper types e.g. OptionalInt
.
May not be used when ExtractedValue
is defined on the type parameter of
a generic wrapper type. A ValueExtractorDefinitionException
will be thrown in
this case.
Copyright © 2007-2017 Red Hat Inc. All Rights Reserved. Released under the Apache Software License 2.0.