org.jboss.seam.faces.view.config
Class ViewConfigStoreImpl

java.lang.Object
  extended by org.jboss.seam.faces.view.config.ViewConfigStoreImpl
All Implemented Interfaces:
ViewConfigStore

@ApplicationScoped
public class ViewConfigStoreImpl
extends Object
implements ViewConfigStore

Data store for view specific data.

Author:
Stuart Douglas, Brian Leathem

Constructor Summary
ViewConfigStoreImpl()
           
 
Method Summary
 void addAnnotationData(String viewId, Annotation annotation)
          Adds data to the store
<T extends Annotation>
List<T>
getAllAnnotationData(String viewId, Class<T> type)
          returns all data for a given viewId, with the most specific data at the start of the list
 List<? extends Annotation> getAllQualifierData(String viewId, Class<? extends Annotation> qualifier)
          returns all qualified data for a given viewId, with the most specific data at the start of the list
<T extends Annotation>
T
getAnnotationData(String viewId, Class<T> type)
          gets the most specific data for a given viewId
 void setup(ViewConfigExtension 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

ViewConfigStoreImpl

public ViewConfigStoreImpl()
Method Detail

setup

@Inject
public void setup(ViewConfigExtension 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


addAnnotationData

public void addAnnotationData(String viewId,
                              Annotation annotation)
Description copied from interface: ViewConfigStore
Adds data to the store

Specified by:
addAnnotationData in interface ViewConfigStore
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

getAnnotationData

public <T extends Annotation> T getAnnotationData(String viewId,
                                                  Class<T> type)
Description copied from interface: ViewConfigStore
gets the most specific data for a given viewId

Specified by:
getAnnotationData in interface ViewConfigStore

getAllAnnotationData

public <T extends Annotation> List<T> getAllAnnotationData(String viewId,
                                                           Class<T> type)
Description copied from interface: ViewConfigStore
returns all data for a given viewId, with the most specific data at the start of the list

Specified by:
getAllAnnotationData in interface ViewConfigStore

getAllQualifierData

public List<? extends Annotation> getAllQualifierData(String viewId,
                                                      Class<? extends Annotation> qualifier)
Description copied from interface: ViewConfigStore
returns all qualified data for a given viewId, with the most specific data at the start of the list

Specified by:
getAllQualifierData in interface ViewConfigStore


Copyright © 2011 Seam Framework. All Rights Reserved.