Tuesday 1 April 2014

Different context objects in ADF

Context Object Name
Who is creating it
Life Cycle phase
Scope
Comments
FacesContext
Faces Servlets
At beginning of each request processing
Per Request
Created by Faces Servlets and contains all the per request state information.This static class provides the request context information for the
application instance and grants developers access to application-wide settings, messages
to be displayed to the end user, lifecycle methods, and the displayed view root.
ExternalContext
 ?
 ?
 ?
 Wraps some of the external servlet functionality and information,
such as the servlet context, cookie maps, the remote user, the request locale, page
redirect, and much more. If developers don’t find what they are looking for within
the set of methods exposed on the ExternalContext, they can use a call to
getResponse or to getRequest to return instances of HttpServletResponse
and HttpServletRequest objects. The ExternalContext object is accessible
from FacesContext.
ADFContext




BindingContext
 ADFBinding filter
At the beginning of the first request
 Once per session

SecurityContext
 JPS security filter
 ?
 ?

ControllerContext




Application