public class JexlInspectionResultProcessorConfig extends Object
Constructor and Description |
---|
JexlInspectionResultProcessorConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that) |
protected Object[] |
getInject() |
protected PropertyStyle |
getInjectThis() |
int |
hashCode() |
JexlInspectionResultProcessorConfig |
setInject(Object... inject)
Sets objects to inject into JEXL evaluations.
|
JexlInspectionResultProcessorConfig |
setInjectThis(PropertyStyle injectThis)
Sets the PropertyStyle to use to inject a request-level 'this' attribute into JEXL
evaluations.
|
public JexlInspectionResultProcessorConfig setInjectThis(PropertyStyle injectThis)
A PropertyStyle is needed so that we can traverse any Metawidget names (i.e.
setToInspect( ..., "Person", "address", "name" )
) in order to reach the last
Object.
public JexlInspectionResultProcessorConfig setInject(Object... inject)
This can be useful for accessing arbitrary Objects in an application's architecture. For
example, you could inject a PersonController
instance programmatically...
setInject( new PersonController() )
...or through metawidget.xml
...
<inject>
<array>
<instanceOf>com.myapp.PersonController</instanceOf>
</array>
</inject>
...and access it through JEXL:
${personController.all}
protected PropertyStyle getInjectThis()
protected Object[] getInject()
Copyright © 2015. All Rights Reserved.