| Modifier and Type | Optional Element and Description |
|---|---|
MethodPredicate[] |
asMethods |
String[] |
value
This annotation value defines an array of literal conditions like "[$c.type == $cat.id, $c.rating > 30.0]".
|
public abstract String[] value
This annotation value defines an array of literal conditions like "[$c.type == $cat.id, $c.rating > 30.0]".
The implementation must parse and match every condition with the method signature.
So in the example above the annotated method might look like void doSomething(Customer $a, Category $cat)
public abstract MethodPredicate[] asMethods
MethodPredicateCopyright © 2021. All rights reserved.