From the course: Java EE: Design Patterns and Architecture
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Implement the Facade pattern
From the course: Java EE: Design Patterns and Architecture
Implement the Facade pattern
- [Instructor] Okay, so let's have a look at the code that goes behind the example in the previous video. So, here we have our banking system, and here we have a subsystem represented by the package, subsystems, and here we have the different subsystems. So, we have the credit rating service, we have the internal bank policy service, the repayment payability service, the repayment service, and then the transfer service. So, let's open our banking system. This is going to be our facade and here is the one method call that the bank manager makes to process the application. So, he calls the method process loan application. Now, because the banking system is a Java EE application, the subsystem services are a special type of bean called an Enterprise JavaBean. An EJB is a POJO that is annotated either stateless, stateful, or singleton. I'll talk more about this in the next video, but in this example, as you can see, I have already annotated those services stateless. So what remains is to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Classic design patterns revisited1m 51s
-
(Locked)
The Singleton design pattern2m 6s
-
(Locked)
Implement a Singleton pool manager5m 58s
-
(Locked)
Advanced Singleton pattern3m 58s
-
(Locked)
Singleton pattern concurrency5m 4s
-
(Locked)
The Facade design pattern2m 10s
-
(Locked)
Implement the Facade pattern4m 54s
-
(Locked)
Advanced Facade services4m 59s
-
(Locked)
The Observer design pattern3m 14s
-
(Locked)
Implement Observer pattern8m 3s
-
(Locked)
Observer priority and qualifiers7m 28s
-
(Locked)
Asynchronous observer3m 54s
-
(Locked)
The Decorator design pattern2m 16s
-
(Locked)
Implement the Decorator pattern8m 39s
-
-
-
-
-
-
-
-
-