Java Reference
In-Depth Information
Presentation
Tier
APPLICATION
CLASSES
Transaction
Interceptor
PlaceOrder
Facade
ORM-Specific
PlaceOrder
ResultFactory
PlaceOrder
Service
ORM-Specific
Platform
Transaction
Manager
ORM-Specific
PendingOrder
Repository
ORM-Specific
Restaurant
Repository
SPRING FRAMEWORK
CLASSES
ORM-Specific
Template
ORM-Specific
Connection
Factory
ORM FRAMEWORK
Figure 7.10
The Spring beans required to deploy the
PlaceOrderFacade
7.6.1
Generic bean definitions
The generic Spring beans instantiate the
PlaceOrderFacade
and apply the
Trans-
actionInterceptor
. They also create the
PlaceOrderService
. Because both the
PlaceOrderService
and the
PlaceOrderFacade
use constructor injection, Spring
will pass their dependencies to their constructors. The
TransactionInterceptor
and
BeanNameAutoProxyCreator
use setter injection, which means that Spring
passes their dependencies as setter arguments. Listing 7.4 shows the generic
Spring bean definitions.
Search WWH ::
Custom Search