예제 #1
0
        public static Request getRequest(String a, String b)
        {
            DecoratorRequest dcr = null;
            DelegateRequest  dlr = null;

            if (a.Equals("A"))
            {
                dcr = new ADecoratorRequest();
            }

            if (a.Equals("B"))
            {
                dcr = new BDecoratorRequest();
            }

            if (b.Equals("Y"))
            {
                dlr = new YDelegateRequest();
            }

            if (b.Equals("Z"))
            {
                dlr = new ZDelegateRequest();
            }

            //dcr.setDelegate(dlr);
            return(dcr);
        }
예제 #2
0
 public void sendRequest(DelegateRequest a)
 {
     throw new NotImplementedException();
 }