Entwurfsmuster und Frameworks – Proxy
Oliver Haase
Oliver Haase Emfra — Proxy 1/14
Entwurfsmuster und Frameworks Proxy Oliver Haase Oliver Haase - - PowerPoint PPT Presentation
Entwurfsmuster und Frameworks Proxy Oliver Haase Oliver Haase Emfra Proxy 1/14 Description I Classification : Object-based structural pattern Also known as : Surrogate Purpose : Control access to a subject through
Oliver Haase Emfra — Proxy 1/14
◮ local placeholder for remote communication; basic idea behind
◮ create expensive objects only on demand → Virtual Proxy
Oliver Haase Emfra — Proxy 2/14
◮ control access to original proxy → Protection Proxy
◮ need for an “inteligent” reference that e.g. counts number of
Oliver Haase Emfra — Proxy 3/14
Oliver Haase Emfra — Proxy 4/14
◮ has reference to real subject (might see real subject only as an
◮ implements type Subject ◮ controls access to real subject; might be responsible for
◮ further functionality depends on proxy kind
Oliver Haase Emfra — Proxy 5/14
Oliver Haase Emfra — Proxy 6/14
Oliver Haase Emfra — Proxy 7/14
Oliver Haase Emfra — Proxy 8/14
Oliver Haase Emfra — Proxy 9/14
Oliver Haase Emfra — Proxy 10/14
Oliver Haase Emfra — Proxy 11/14
Oliver Haase Emfra — Proxy 12/14
Oliver Haase Emfra — Proxy 13/14
Oliver Haase Emfra — Proxy 14/14