Java Reference
In-Depth Information
AbstractFacade is not an enterprise bean but an abstract class that implements com-
mon operations for Type<T> , where <T> is a JPA entity.
Most of the other beans extend AbstractFacade , inject the PersistenceCon-
text , and implement any needed custom methods:
AdministratorBean
CategoryBean
GroupsBean
OrderBean
OrderDetailBean
OrderStatusBean
ProductBean
ShoppingCart
UserBean
The ShoppingCart , although it is in the ejb package, is a CDI managed bean with
conversation scope, which means that the request information will persist across multiple
requests. Also, ShoppingCart is responsible for starting the event chain for customer
orders, as described in “ The events Project ” on page 494 .
Facelets Files Used in the Main Interface of Duke's Store
Like the other case study examples, Duke's Store uses Facelets to display the user inter-
face. The main interface uses a large number of Facelets pages to display different areas.
The pages are grouped into directories based on which module they handle.
Search WWH ::




Custom Search