b'\n_START_ARTICLE_\nArchet\xc3\xadpus (programtervez\xc3\xa9si minta)\n_START_SECTION_\nJava p\xc3\xa9lda\n_START_PARAGRAPH_\npublic interface Request {_NEWLINE__NEWLINE_public void sendRequest();}public class RequestFactory {_NEWLINE__NEWLINE_public static Request getRequest(String a, String b){_NEWLINE_DecoratorRequest dcr = null;_NEWLINE_DelegateRequest dlr = null;_NEWLINE__NEWLINE_if (a.equals("A")) _NEWLINE_dcr = new ADecoratorRequest();_NEWLINE__NEWLINE_if (a.equals("B")) _NEWLINE_dcr = new BDecoratorRequest();_NEWLINE__NEWLINE_if (b.equals("Y")) _NEWLINE_dlr = new YDelegateRequest();_NEWLINE__NEWLINE_if (b.equals("Z")) _NEWLINE_dlr = new ZDelegateRequest();_NEWLINE__NEWLINE_dcr.setDelegate(dlr);_NEWLINE_return dcr;_NEWLINE_}}public class App {_NEWLINE__NEWLINE_public static void main(String[] args) {_NEWLINE_   Request cr =null;_NEWLINE__NEWLINE_   cr = RequestFactory.getRequest("A","Y");_NEWLINE_   cr.sendRequest();_NEWLINE__NEWLINE_   cr = RequestFactory.getRequest("A","Z");_NEWLINE_           cr.sendRequest();_NEWLINE__NEWLINE_           cr = RequestFactory.getRequest("B","Y");_NEWLINE_           cr.sendRequest();_NEWLINE__NEWLINE_   cr = RequestFactory.getRequest("B","Z");_NEWLINE_           cr.sendRequest();_NEWLINE_}}public abstract class DecoratorRequest implements Request {_NEWLINE_protected DelegateRequest delegate;_NEWLINE__NEWLINE_public DecoratorRequest() {_NEWLINE_}_NEWLINE__NEWLINE_public void setDelegate(DelegateRequest delegate) {_NEWLINE_this.delegate = delegate;_NEWLINE_}}public abstract class DelegateRequest implements Request {_NEWLINE__NEWLINE_public DelegateRequest () {_NEWLINE_}}public class ADecoratorRequest extends DecoratorRequest {_NEWLINE__NEWLINE_@Override_NEWLINE_public void sendRequest() {_NEWLINE_System.out.print("A-");_NEWLINE_delegate.sendRequest();_NEWLINE_}}public class BDecoratorRequest extends DecoratorRequest {_NEWLINE__NEWLINE_@Override_NEWLINE_public void sendRequest() {_NEWLINE_System.out.print("B-");_NEWLINE_delegate.sendRequest();_NEWLINE_}}public class YDelegateRequest extends DelegateRequest {_NEWLINE__NEWLINE_@Override_NEWLINE_public void sendRequest() {_NEWLINE_System.out.println("-Y");_NEWLINE_}}public class ZDelegateRequest extends DelegateRequest {_NEWLINE__NEWLINE_@Override_NEWLINE_public void sendRequest() {_NEWLINE_System.out.println("-Z");_NEWLINE_}}\n_START_SECTION_\nFord\xc3\xadt\xc3\xa1s\n_START_PARAGRAPH_\nEz a sz\xc3\xb3cikk r\xc3\xa9szben vagy eg\xc3\xa9szben  az   Archetype pattern c\xc3\xadm\xc5\xb1 angol Wikip\xc3\xa9dia-sz\xc3\xb3cikk ford\xc3\xadt\xc3\xa1s\xc3\xa1n alapul.  Az eredeti cikk szerkeszt\xc5\x91it annak lapt\xc3\xb6rt\xc3\xa9nete sorolja fel.'