org.jboss.seam.faces.viewdata
Interface ViewDataStore

All Known Implementing Classes:
ViewDataStoreImpl

public interface ViewDataStore

stores data specific to a given view is a heiracial fashion

Author:
Stuart Douglas

Method Summary
 void addData(String viewId, Annotation annotation)
          Adds data to the store
<T extends Annotation>
List<T>
getAllData(String viewId, Class<T> type)
          returns all data for a given viewId, with the most specific data at the start of the list
<T extends Annotation>
List<T>
getAllDataForCurrentViewId(Class<T> type)
          returns all data for the current viewId, with the most specific data at the start of the list
<T extends Annotation>
T
getData(String viewId, Class<T> type)
          gets the most specific data for a given viewId
<T extends Annotation>
T
getDataForCurrentViewId(Class<T> type)
          gets the most specific data for the current viewId
 

Method Detail

addData

void addData(String viewId,
             Annotation annotation)
Adds data to the store

Parameters:
viewId - The view id to associate the data with. A * at the end of the view id is considered a wildcard
annotation - the data to store

getData

<T extends Annotation> T getData(String viewId,
                                 Class<T> type)
gets the most specific data for a given viewId


getDataForCurrentViewId

<T extends Annotation> T getDataForCurrentViewId(Class<T> type)
gets the most specific data for the current viewId


getAllData

<T extends Annotation> List<T> getAllData(String viewId,
                                          Class<T> type)
returns all data for a given viewId, with the most specific data at the start of the list


getAllDataForCurrentViewId

<T extends Annotation> List<T> getAllDataForCurrentViewId(Class<T> type)
returns all data for the current viewId, with the most specific data at the start of the list



Copyright © 2011 Seam Framework. All Rights Reserved.