org.apache.myfaces.orchestra.viewController
Class CompositeViewControllerNameMapper
java.lang.Object
org.apache.myfaces.orchestra.viewController.CompositeViewControllerNameMapper
- All Implemented Interfaces:
- ViewControllerNameMapper
public class CompositeViewControllerNameMapper
- extends java.lang.Object
- implements ViewControllerNameMapper
Each view controller configured with the constructor will be asked to map the given viewId.
The first one not returning NULL wins.
As an example, this can be configured to first try a mapper that converts the viewId to
a beanname, then if that fails to find a match try a mapper that uses class annotations
to find an appropriate bean.
Method Summary |
java.lang.String |
mapViewId(java.lang.String viewId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeViewControllerNameMapper
public CompositeViewControllerNameMapper(ViewControllerNameMapper[] viewControllerNameMappers)
mapViewId
public java.lang.String mapViewId(java.lang.String viewId)
- Specified by:
mapViewId
in interface ViewControllerNameMapper
Copyright © 2009 The Apache Software Foundation. All Rights Reserved.