Class ViewDeclarationLanguageFactory
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ViewDeclarationLanguage
getViewDeclarationLanguage
(String viewId) Return theViewDeclarationLanguage
instance suitable for handling the VDL contained in the page referenced by the argumentviewId
.If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped.
-
Constructor Details
-
ViewDeclarationLanguageFactory
public ViewDeclarationLanguageFactory()
-
-
Method Details
-
getWrapped
If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. A default implementation is provided that returns
null
.- Specified by:
getWrapped
in interfaceFacesWrapper<ViewDeclarationLanguageFactory>
-
getViewDeclarationLanguage
Return the
ViewDeclarationLanguage
instance suitable for handling the VDL contained in the page referenced by the argumentviewId
. The default implementation must return a validViewDeclarationLanguage
instance for views written in either JSP, Faces XML Views, or Facelets for JSF 2.- Parameters:
viewId
- the viewId to be inspected for an appropriateViewDeclarationLanguage
implementation for the VDL used in the view.- Throws:
NullPointerException
- ifviewId
is null.- Since:
- 2.0
-