public static class ArgumentExtractors.AttributeExtractor extends Object implements ArgumentExtractor<Object>
Constructor and Description |
---|
AttributeExtractor(Attribute attribute,
ArgumentClassHolder attributeType) |
Modifier and Type | Method and Description |
---|---|
Object |
extract(Context context)
Extract the argument from the context
|
Class |
getExtractedType()
Get the type of the argument that is extracted
|
String |
getFieldName()
Get the field name that is being extracted, if this value is
extracted from a field
|
@Inject public AttributeExtractor(Attribute attribute, ArgumentClassHolder attributeType)
public Object extract(Context context)
ArgumentExtractor
extract
in interface ArgumentExtractor<Object>
context
- The argument to extractpublic Class getExtractedType()
ArgumentExtractor
getExtractedType
in interface ArgumentExtractor<Object>
public String getFieldName()
ArgumentExtractor
getFieldName
in interface ArgumentExtractor<Object>
Copyright © 2019 ninjaframework. All rights reserved.