Class ViewDeclarationLanguageFactory

  • All Implemented Interfaces:
    FacesWrapper<ViewDeclarationLanguageFactory>


    public abstract class ViewDeclarationLanguageFactory
    extends java.lang.Object
    implements FacesWrapper<ViewDeclarationLanguageFactory>

    ViewDeclarationLanguageFactory is a factory object that creates (if needed) and returns a new ViewDeclarationLanguage instance based on the VDL found in a specific view.

    There must be one ViewDeclarationLanguageFactory instance per web application that is utilizing JavaServer Faces. This instance can be acquired, in a portable manner, by calling:

    
       ViewDeclarationLanguageFactory factory = (ViewDeclarationLanguageFactory)
        FactoryFinder.getFactory(FactoryFinder.VIEW_DECLARATION_LANGUAGE_FACTORY);
     
    Since:
    2.0
    • Constructor Detail

      • ViewDeclarationLanguageFactory

        public ViewDeclarationLanguageFactory​()
    • Method Detail

      • getViewDeclarationLanguage

        public abstract ViewDeclarationLanguage getViewDeclarationLanguage​(java.lang.String viewId)

        Return the ViewDeclarationLanguage instance suitable for handling the VDL contained in the page referenced by the argument viewId. The default implementation must return a valid ViewDeclarationLanguage instance for views written in either JSP, Faces XML Views, or Facelets for JSF 2.

        Parameters:
        viewId - the viewId to be inspected for an appropriate ViewDeclarationLanguage implementation for the VDL used in the view.
        Throws:
        java.lang.NullPointerException - if viewId is null.
        Since:
        2.0