Scope types

There are four scope types available until now: Logic, Request, Session and Application.

ScopeType.REQUEST

This scope is a wrapper for the Request scope. It lives until the user receives the response.

It is the defaults scope

You can access the RequestContext object throught dependency injection.

It can also be used with dependency injection:

public class MyLogic {

        private RequestContext reference;

        public MyLogic(RequestContext reference) {
                this.reference = reference;
        }

}

ScopeType.SESSION

This scope is a wrapper for the Session scope. It lives until the session expires (see Session Timeout on the servlet specification).

ScopeType.APPLICATION

This scope accesses the servlet context a.k.a. application scope.