CDI Concepts: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * CDI") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[CDI#Subjects|CDI]] | * [[CDI#Subjects|CDI]] | ||
=beans.xml= | |||
{{Internal|beans.xml|beans.xml}} | |||
=Bean Scope= | |||
==Request== | |||
==Session== | |||
==Application== | |||
The bean maintain shared state for the entire lifecycle of the application. | |||
{{Internal|@javax.enterprise.context.ApplicationScoped|@ApplicationScoped}} | |||
==Dependent== | |||
The object exists to serve exactly one client (bean) and has the same lifecycle as the client. | |||
{{Internal|@javax.enterprise.context.Dependent|@Dependent}} | |||
==Conversation== |
Latest revision as of 15:18, 2 May 2017
Internal
beans.xml
Bean Scope
Request
Session
Application
The bean maintain shared state for the entire lifecycle of the application.
Dependent
The object exists to serve exactly one client (bean) and has the same lifecycle as the client.