|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.seam.faces.viewdata.ViewDataStoreImpl
@ApplicationScoped public class ViewDataStoreImpl
Data store for view specific data.
Constructor Summary | |
---|---|
ViewDataStoreImpl()
|
Method Summary | ||
---|---|---|
void |
addData(String viewId,
Annotation annotation)
Adds data to the store |
|
|
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(Class<T> type)
returns all data for the current viewId, with the most specific data at the start of the list |
|
|
getData(String viewId,
Class<T> type)
gets the most specific data for a given viewId |
|
|
getDataForCurrentViewId(Class<T> type)
gets the most specific data for the current viewId |
|
void |
setup(ViewDataConfigurationExtension extension)
setup the bean with the configuration from the extension It would be better if the extension could do this, but the extension cannot resolve the bean until after all lifecycle events have been processed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewDataStoreImpl()
Method Detail |
---|
@Inject public void setup(ViewDataConfigurationExtension extension)
public void addData(String viewId, Annotation annotation)
ViewDataStore
addData
in interface ViewDataStore
viewId
- The view id to associate the data with. A * at the end of
the view id is considered a wildcardannotation
- the data to storepublic <T extends Annotation> T getData(String viewId, Class<T> type)
ViewDataStore
getData
in interface ViewDataStore
public <T extends Annotation> T getDataForCurrentViewId(Class<T> type)
ViewDataStore
getDataForCurrentViewId
in interface ViewDataStore
public <T extends Annotation> List<T> getAllData(String viewId, Class<T> type)
ViewDataStore
getAllData
in interface ViewDataStore
public <T extends Annotation> List<T> getAllDataForCurrentViewId(Class<T> type)
ViewDataStore
getAllDataForCurrentViewId
in interface ViewDataStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |