Business Facade (BF)

ARCHITECTURAL Role

This pattern is layer-specific; it is used within the Business architectural layer. A BF is the boundary class interacting with an Inbound/Outbound Controller and often with a Resource Manager

BEHAVIOR DEFINED

A PED Business Facade (BF) supports managing business logic. An effective design may include delegating logic to a business Helper class to enhance cohesion.

When designing for multicore (concurrent) processing, a BF typically offers an effective launch point for worker-threads.

Structural Characteristics

Characteristic

Recommended

Note

 Extend Base Class Y  
 No-arg Constructor Y 1.
 CDI Scoping @Application  
 Instance State N  
 Static Public Methods (enum) Optional  
 Fluent Methods N  
 Delegate to Helper Optional 2.
 Worker-thread Safe Y 3.
  1. A no-argument constructor enables a CDI bean instance/proxy.
  2. An option for enhanced design cohesion.
  3. Presuming the BF is coded as a CDI proxy.
Source Example