|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.beanconsole.DisplayController
public class DisplayController
Controller that processes request, select the object and prepares data for the view
Field Summary | |
---|---|
protected String |
componentPath
Component path this controller is to be working from |
protected String |
pageName
If path defined as a pattern to a specific page (index.html for instance) then it needs to be stripped of component resource path before it is used |
protected Object |
root
Root object |
protected ApplicationContext |
rootContext
Application context this controller is running under |
Constructor Summary | |
---|---|
DisplayController()
|
Method Summary | |
---|---|
String |
getComponentPath()
Returns component path |
String |
getPageName()
Returns page name |
Object |
getRootObject()
Returns root object. |
ModelAndView |
handleRequest(Connection connection)
Method that handles a request. |
void |
setApplicationContext(ApplicationContext context)
Sets root application context in case root is not set. |
void |
setComponentPath(String componentPath)
Sets component path |
void |
setPageName(String pageName)
Sets page name |
void |
setRootObject(Object root)
Sets root object. |
protected void |
updateProperties(Object current,
HTTPConnection httpConnection,
Map<String,Object> model)
Sets properties of the selected bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Object root
protected ApplicationContext rootContext
protected String componentPath
protected String pageName
Constructor Detail |
---|
public DisplayController()
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 Controller
connection
- connection action was invoked over
protected void updateProperties(Object current, HTTPConnection httpConnection, Map<String,Object> model)
current
- selected beanhttpConnection
- http connectionmodel
- modelpublic void setApplicationContext(ApplicationContext context)
setApplicationContext
in interface ApplicationContextAware
context
- application contextpublic Object getRootObject()
public void setRootObject(Object root)
root
- root object.public String getComponentPath()
public void setComponentPath(String componentPath)
componentPath
- component pathpublic String getPageName()
public void setPageName(String pageName)
pageName
- page name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |