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)
ViewConfigDescriptorviewId - 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 ViewConfigDescriptorpublic Class<? extends ViewConfig> getViewConfig()
getViewConfig in interface ViewConfigDescriptorpublic Page.NavigationMode getNavigationMode()
getNavigationMode in interface ViewConfigDescriptorpublic Page.ViewParameterMode getViewParameterMode()
Page.ViewParameterMode of the current
entrygetViewParameterMode in interface EditableViewConfigDescriptorpublic List<PageBeanDescriptor> getPageBeanDescriptors()
getPageBeanDescriptors in interface ViewConfigDescriptorpublic void invokeInitViewMethods()
InitViewinvokeInitViewMethods in interface EditableViewConfigDescriptorpublic void invokePrePageActionMethods()
PrePageActioninvokePrePageActionMethods in interface EditableViewConfigDescriptorpublic void invokePreRenderViewMethods()
PreRenderViewinvokePreRenderViewMethods in interface EditableViewConfigDescriptorpublic void invokePostRenderViewMethods()
PostRenderViewinvokePostRenderViewMethods in interface EditableViewConfigDescriptorpublic List<Class<? extends AccessDecisionVoter>> getAccessDecisionVoters()
getAccessDecisionVoters in interface ViewConfigDescriptorpublic Class<? extends ViewConfig> getErrorView()
getErrorView in interface EditableViewConfigDescriptorpublic List<Annotation> getMetaData()
getMetaData in interface ViewConfigDescriptorpublic <T extends Annotation> List<T> getMetaData(Class<T> target)
getMetaData in interface ViewConfigDescriptorpublic void addPageBean(Class pageBeanClass)
addPageBean in interface EditableViewConfigDescriptorpageBeanClass - page-bean which should be addedpublic void setPartialViewConfig(boolean inlinePageBean)
ViewsetPartialViewConfig in interface EditableViewConfigDescriptorinlinePageBean - indicates if the entry is in the partial view-config modepublic boolean isPartialViewConfig()
isPartialViewConfig in interface EditableViewConfigDescriptorCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.