As per the closing remarks in today's hangout, here are some links to the back-end data store used in Seam Faces.

The first class, ViewConfigExtension, scans for the view config annotations, and stores them in a map viewPattern (Strings) -> Set<Annotation>.

https://github.com/seam/faces/blob/develop/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigExtension.java

The map in the Extension is then queried by the ViewConfigStore to build some data structures to efficiently look up the annotation for a given map. The ViewConfigStore could also query alternate sources of view configuration data, not just the Extension.

ViewConfigStore (API)
https://github.com/seam/faces/blob/develop/api/src/main/java/org/jboss/seam/faces/view/config/ViewConfigStore.java

ViewConfigStore (IMPL)
https://github.com/seam/faces/blob/develop/impl/src/main/java/org/jboss/seam/faces/view/config/ViewConfigStoreImpl.java

Hope that provides some useful inspiration.

Brian Leathem

Reply via email to