org.omnifaces.application
Class ViewScopeProvider

java.lang.Object
  extended by org.omnifaces.application.ViewScopeProvider
Direct Known Subclasses:
ViewScopeManager

public abstract class ViewScopeProvider
extends java.lang.Object

An abstraction of view scope provider. Concrete view scope provider implementations (such as the one from CDI) must store themselves in the EL scope under the NAME.

Since:
1.6
Author:
Bauke Scholtz
See Also:
ViewScopeEventListener

Field Summary
static java.lang.String NAME
          The name on which the view scope provider implementation should be stored in the EL scope.
 
Constructor Summary
ViewScopeProvider()
           
 
Method Summary
static ViewScopeProvider getInstance()
          Returns the view scope provider implementation from the EL context, or null if there is none.
abstract  void preDestroyView()
          This method is invoked during view destroy by ViewScopeEventListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
The name on which the view scope provider implementation should be stored in the EL scope.

See Also:
Constant Field Values
Constructor Detail

ViewScopeProvider

public ViewScopeProvider()
Method Detail

preDestroyView

public abstract void preDestroyView()
This method is invoked during view destroy by ViewScopeEventListener.


getInstance

public static ViewScopeProvider getInstance()
Returns the view scope provider implementation from the EL context, or null if there is none.

Returns:
The view scope provider implementation from the EL context, or null if there is none.