concept other component in category seam

This is an excerpt from Manning's book Seam in Action.
Like the GolfTip entity class, the @Name annotation
marks the TipAction class as a Seam component, this time scoped to the event context (the default scope for JavaBean components). What sets this component apart from the GolfTip entity class is that it is capable of having other components “wired” into it because the @In annotation is placed above certain fields of the class
, a mechanism known as bijection. In this example, the two dependent components are the JPA EntityManager and Seam’s built-in JSF messages manager. This component also prepares a collection of GolfTip objects for use in the JSF view
; captures the GolfTip that the user selects from that collection, making it available to both the method handling the event and the subsequent view
; and interpolates the active GolfTip in the JSF status messages
.
Implementing business logic typically involves delegating work to other components. A familiar delegate that shows up in nearly every database-oriented application is the persistence manager (e.g., JPA EntityManager or Hibernate Session), which is used to persist entities or read their state from the database. In the previous chapter, you used component configuration to perform this injection—a form of static DI. That’s fine if you’re injecting a stateful component into a short-lived component or injecting a stateless component. However, as soon as you start using stateful components that interact with other stateful components, you need a mechanism that keeps the references up to date. Rather than trying to distinguish between the two cases, the recommended way of hooking components together in a Seam application is to use bijection. That way, you can always be sure the component will adapt to changes in the application’s state.
marks the TipAction class as a Seam component, this time scoped to the event context (the default scope for JavaBean components). What sets this component apart from the GolfTip entity class is that it is capable of having other components “wired” into it because the @In annotation is placed above certain fields of the class
, a mechanism known as bijection. In this example, the two dependent components are the JPA EntityManager and Seam’s built-in JSF messages manager. This component also prepares a collection of GolfTip objects for use in the JSF view
; captures the GolfTip that the user selects from that collection, making it available to both the method handling the event and the subsequent view
; and interpolates the active GolfTip in the JSF status messages
.