Using Proxy pattern in Java project

Pubblicato il: 14 settembre 2020
sul canale di: Improve Your Programming skills
100
2

Proxy is a structural design pattern that allows you to perform something either before or after the request gets through to the original object.

Assume that we manage a store, when processing an order
if birthday of a user is greater than 2000 and he/she orders Beer products
then we don't process it.
Implementation steps
1. Create Product class
2. Create User class
3. Create IOrderProcessing interface
4. Create OrderProcessing class that implements IOrderProcessing interface
5. Create OrderProxyProcessing class that IOrderProcessing interface


In questa pagina del sito puoi guardare il video online Using Proxy pattern in Java project della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Improve Your Programming skills 14 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 100 volte e gli è piaciuto 2 spettatori. Buona visione!