|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.webapp.pdl.PageDeclarationLanguageFactory
public abstract class PageDeclarationLanguageFactory
PageDeclarationLanguageFactory
is a factory object that creates (if needed) and returns a new PageDeclarationLanguage
instance based on the PDL found in a specific
view.
There must be one PageDeclarationLanguageFactory
instance per web
application that is utilizing JavaServer Faces. This instance can be
acquired, in a portable manner, by calling:
PageDeclarationLanguageFactory factory = (PageDeclarationLanguageFactory)
FactoryFinder.getFactory(FactoryFinder.PAGE_DECLARATION_LANGUAGE_FACTORY);
Constructor Summary | |
---|---|
PageDeclarationLanguageFactory()
|
Method Summary | |
---|---|
abstract PageDeclarationLanguage |
getPageDeclarationLanguage(String viewId)
Return the
|
PageDeclarationLanguageFactory |
getWrapped()
If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageDeclarationLanguageFactory()
Method Detail |
---|
public PageDeclarationLanguageFactory 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
.
getWrapped
in interface FacesWrapper<PageDeclarationLanguageFactory>
public abstract PageDeclarationLanguage getPageDeclarationLanguage(String viewId)
Return the
PageDeclarationLanguage
instance suitable for
handling the PDL contained in the page referenced by the argument
viewId
. The default implementation must return a
valid PageDeclarationLanguage
instance for views
written in either JSP or Facelets.
viewId
- the viewId to be inspected for an appropriate
PageDeclarationLanguage
implementation for the PDL used
in the view.
NullPointerException
- if viewId
is null.
ClassNotFoundException
- if unable to locate a suitable
PageDeclarationLanguage
implementation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |