Package io.higson.runtime.core.domain
Interface AttributeInterceptor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface enables developers to provide custom implementation of parameter value provider. It is setup within
HigsonEngineFactory, but interception happens within AttributeValueProvider during
getting value for domain attribute.- Author:
- przemek hertel
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetValue(AttributeValueResolver resolver, DomainAttribute attr, ParamContext ctx, Object... args) This method allows provide custom handling of parameters for domain attributes.
-
Method Details
-
getValue
ParamValue getValue(AttributeValueResolver resolver, DomainAttribute attr, ParamContext ctx, Object... args) This method allows provide custom handling of parameters for domain attributes.- Parameters:
resolver- attribute value resolverattr- attribute from which value and type will be fetchedctx- context required for finding proper valueargs- possible arguments if attribute is defined as function- Returns:
- possible values
-