Name
Business Delegate Factory
Goal
Simplify instantiation and configuration of business delegates.
Participants
- Client
Manipulates business tier data using a delegate.
- Business delegate factory
Configures and instantiates business delegates.
- Business delegates
Locate, connect to, and interact with business services (Figure B-8).
Figure B-8. Interactions in the Business Delegate Factory pattern
Interactions
A client creates a new instance of a business delegate factory. The client sets attributes of the factory that control the type and options of the desired delegate. The factory generates a new instance of the requested delegate with the relevant parameters and returns it to the client. The client uses the delegate to interact with the business tier.
Notes
A business delegate factory may be stateful or stateless. If the factory is stateless, each call must contain all the required configuration parameters, but the factory can be a singleton.
Get J2EE Design Patterns now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.