public class DefaultViewConfigDescriptor extends Object implements EditableViewConfigDescriptor
Constructor and Description |
---|
DefaultViewConfigDescriptor(String viewId,
Class<? extends ViewConfig> viewDefinitionClass,
Page.NavigationMode navigationMode,
Page.ViewParameterMode viewParameterMode,
List<Class<? extends AccessDecisionVoter>> accessDecisionVoters,
Class<? extends ViewConfig> errorView,
List<Annotation> metaDataList)
Constructor for creating a
ViewConfigDescriptor |
Modifier and Type | Method and Description |
---|---|
void |
addPageBean(Class pageBeanClass)
Allows to add page-beans
|
boolean |
equals(Object o) |
List<Class<? extends AccessDecisionVoter>> |
getAccessDecisionVoters() |
Class<? extends ViewConfig> |
getErrorView()
Exposes the inline error-page
|
List<Annotation> |
getMetaData() |
<T extends Annotation> |
getMetaData(Class<T> target) |
Page.NavigationMode |
getNavigationMode() |
List<PageBeanDescriptor> |
getPageBeanDescriptors() |
Class<? extends ViewConfig> |
getViewConfig() |
String |
getViewId() |
Page.ViewParameterMode |
getViewParameterMode()
Exposes the
Page.ViewParameterMode of the current
entry |
int |
hashCode() |
void |
invokeInitViewMethods()
Invokes the methods annotated with
InitView |
void |
invokePostRenderViewMethods()
Invokes the methods annotated with
PostRenderView |
void |
invokePrePageActionMethods()
Invokes the methods annotated with
PrePageAction |
void |
invokePreRenderViewMethods()
Invokes the methods annotated with
PreRenderView |
boolean |
isPartialViewConfig()
Exposes if the current view-config represents a partial config which isn't created based on a central config
|
void |
setPartialViewConfig(boolean inlinePageBean)
Allows to mark the current descriptor as partial config e.g.
|
public DefaultViewConfigDescriptor(String viewId, Class<? extends ViewConfig> viewDefinitionClass, Page.NavigationMode navigationMode, Page.ViewParameterMode viewParameterMode, List<Class<? extends AccessDecisionVoter>> accessDecisionVoters, Class<? extends ViewConfig> errorView, List<Annotation> metaDataList)
ViewConfigDescriptor
viewId
- view-id represented by the descriptorviewDefinitionClass
- view-config classnavigationMode
- configured navigation-modeviewParameterMode
- configured view-parameter-modeaccessDecisionVoters
- configured access-decision-voterserrorView
- optional inline error-viewmetaDataList
- optional meta-datapublic String getViewId()
getViewId
in interface ViewConfigDescriptor
public Class<? extends ViewConfig> getViewConfig()
getViewConfig
in interface ViewConfigDescriptor
public Page.NavigationMode getNavigationMode()
getNavigationMode
in interface ViewConfigDescriptor
public Page.ViewParameterMode getViewParameterMode()
Page.ViewParameterMode
of the current
entrygetViewParameterMode
in interface EditableViewConfigDescriptor
public List<PageBeanDescriptor> getPageBeanDescriptors()
getPageBeanDescriptors
in interface ViewConfigDescriptor
public void invokeInitViewMethods()
InitView
invokeInitViewMethods
in interface EditableViewConfigDescriptor
public void invokePrePageActionMethods()
PrePageAction
invokePrePageActionMethods
in interface EditableViewConfigDescriptor
public void invokePreRenderViewMethods()
PreRenderView
invokePreRenderViewMethods
in interface EditableViewConfigDescriptor
public void invokePostRenderViewMethods()
PostRenderView
invokePostRenderViewMethods
in interface EditableViewConfigDescriptor
public List<Class<? extends AccessDecisionVoter>> getAccessDecisionVoters()
getAccessDecisionVoters
in interface ViewConfigDescriptor
public Class<? extends ViewConfig> getErrorView()
getErrorView
in interface EditableViewConfigDescriptor
public List<Annotation> getMetaData()
getMetaData
in interface ViewConfigDescriptor
public <T extends Annotation> List<T> getMetaData(Class<T> target)
getMetaData
in interface ViewConfigDescriptor
public void addPageBean(Class pageBeanClass)
addPageBean
in interface EditableViewConfigDescriptor
pageBeanClass
- page-bean which should be addedpublic void setPartialViewConfig(boolean inlinePageBean)
View
setPartialViewConfig
in interface EditableViewConfigDescriptor
inlinePageBean
- indicates if the entry is in the partial view-config modepublic boolean isPartialViewConfig()
isPartialViewConfig
in interface EditableViewConfigDescriptor
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.