gate.util.spring
Class SetParameterResourceCustomiser
java.lang.Object
gate.util.spring.SetParameterResourceCustomiser
- All Implemented Interfaces:
- ResourceCustomiser
public class SetParameterResourceCustomiser
- extends Object
- implements ResourceCustomiser
ResourceCustomiser that sets a parameter on the resource being
customised. When used to customise Controllers, it can optionally
take a "prName" property. In this case it will set the parameter on
the first PR with that name in the controller, rather than the
controller itself
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
paramName
private String paramName
value
private Object value
prName
private String prName
SetParameterResourceCustomiser
public SetParameterResourceCustomiser()
customiseResource
public void customiseResource(Resource res)
throws Exception
- Specified by:
customiseResource in interface ResourceCustomiser
- Throws:
Exception
setParamName
public void setParamName(String paramName)
setValue
public void setValue(Object value)
setPrName
public void setPrName(String prName)