|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.danube.beanconsole.InvokeController
public class InvokeController
Invokes an arbitrary method on selected bean. The bean is defined with all but last part of the resource path.
| Field Summary | |
|---|---|
protected DisplayController |
displayController
|
| Constructor Summary | |
|---|---|
InvokeController()
Constructor |
|
InvokeController(DisplayController displayController)
Constructor |
|
| Method Summary | |
|---|---|
protected void |
execute(Map<String,Object> model,
Object current,
HTTPConnection httpConnection,
String methodName)
Invokes the method |
DisplayController |
getDisplayController()
Returns reference to DisplayController instance |
ModelAndView |
handleRequest(Connection connection)
Method that handles a request. |
void |
setDisplayController(DisplayController displayController)
Sets reference to DisplayController instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DisplayController displayController
| Constructor Detail |
|---|
public InvokeController()
public InvokeController(DisplayController displayController)
displayController - reference to display controller| Method Detail |
|---|
public ModelAndView handleRequest(Connection connection)
BeanDef objects - if object is of ConfigurableApplicationContext type.BeanDef objects - if object is of Map type.BeanDef objects - if object is of Collection type.BeanDef objects - object accessible properties.MethodDescriptor object - methods that are not used for properties' access.
For the way navigation is done check BeanHelper.navigate(Object, String) method documentation.
handleRequest in interface Controllerconnection - connection action was invoked over
protected void execute(Map<String,Object> model,
Object current,
HTTPConnection httpConnection,
String methodName)
model - model mapcurrent - current beanhttpConnection - http connection (for paramters)methodName - method namepublic DisplayController getDisplayController()
public void setDisplayController(DisplayController displayController)
displayController - reference to DisplayController instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||