October 2017
Intermediate to advanced
396 pages
10h 2m
English
Let's look into the following listings to demonstrate the Facade design pattern.
Create subsystem service classes for your Bank application: Let's see the following PaymentService class for the subsystem.
Following is the PaymentService.java file:
package com.packt.patterninspring.chapter3.facade.pattern;
public class PaymentService {
public static boolean doPayment(){
return true;
}
}
Let's create another service class AccountService for the subsystem.
Following is the AccountService.java file:
package com.packt.patterninspring.chapter3.facade.pattern; import com.packt.patterninspring.chapter3.model.Account; import com.packt.patterninspring.chapter3.model.SavingAccount; public class AccountService ...
Read now
Unlock full access