|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
See:
Description
| Interface Summary | |
|---|---|
| WebContext | Provides access to the web runtime context of the beanlet instance. |
| Class Summary | |
|---|---|
| ServletContextListener | Add the following configuration to the web application's web.xml file
to support the Request and Session beanlet scopes. |
| Annotation Types Summary | |
|---|---|
| Request | Request beanlets do not provide direct access to the underlying objects. |
| Session | Session beanlets do not provide direct access to the underlying objects. |
| WebFilter | The annotation used to declare a Servlet Filter. |
| WebListener | The annotation used to declare a listener for various types of event, in a given web application context. |
| WebServlet | This annotation is used to declare the configuration of an
Servlet. |
Adds web specific beanlet scopes.
Request beanlets do not provide direct access to
the underlying objects. Instead, clients obtain a stub that delegates
invocations to the underlying instance. In case of request beanlets,
the stub creates a new instance per HTTP request. This instance is always
assigned while performing that particular HTTP request.
Session beanlets do not provide direct access to
the underlying objects. Instead, clients obtain a stub that delegates
invocations to the underlying instance. In case of request beanlets,
the stub creates a new instance per HTTP session. This instance is always
assigned while performing a request for that particular HTTP session.
Session beanlet instances only exist while the session, for which they were
created, is active. These beanlet instances are destroyed when their HTTP
session is invalidated or expired.reentrant by default, which means that only
one thread can invoke a method of the beanlet instance at the same time.
This feature is provided by the stub, which controls all access to the
underlying instance. Session beanlets can also be configured to be reentrant.
BY_INFO dependency
injection. Use the BeanletMetaData interface to find out
whether a beanlet is static, or not.
The static property of a beanlet is derived from the selected beanlet scope, i.e., singleton vanilla beanlets are static, where non-singleton vanilla beanlets are non-static. The following table shows the static property for all web beanlet scopes.
| singleton | reentrant | static | |
|---|---|---|---|
| Request | N/A | N/A | false |
| Session | N/A | true/false | false |
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||