Java?????????????
???????????? ???????[ 2015/4/16 14:36:56 ] ????????Java ????? ?????
??????.???????????????????
???????????????IBread?????????????????????IBread???????
??????????????2??????:??????????????????????????
1 package ?????;
2
3 public abstract class AbstractBread implements IBread {
4
5 private final IBread bread;
6
7 public AbstractBread(IBread bread) {
8 super();
9 this.bread = bread;
10 }
11 @Override
12 public void prepair() {
13 this.bread.prepair();
14 }
15 @Override
16 public void kneadFlour() {
17 this.bread.kneadFlour();
18 }
19 @Override
20 public void steamed() {
21 this.bread.steamed();
22 }
23
24 @Override
25 public void process() {
26 prepair();
27 kneadFlour();
28 steamed();
29 }
30
31 }
??????.?????????????"???????"
???????AbstarctBread???????????????????????????????????????????з???????????????????????????????
?????????????????????
??????????????1??????:???????????????????????
1 package ?????;
2
3 public class CornDecorator extends AbstractBread{
4
5 public CornDecorator(IBread bread) {
6
7 super(bread);
8 }
9
10 public void paint(){
11
12 System.out.println("??????????????");
13 }
14 @Override
15 public void kneadFlour() {
16 //?????????????
17 this.paint();
18 super.kneadFlour();
19 }
20
21
22 }
??????.?????????????"?????"
????????????????
1 package ?????;
2
3 public class SweetDecorator extends AbstractBread {
4
5 public SweetDecorator(IBread bread) {
6
7 super(bread);
8 }
9
10 public void paint(){
11
12 System.out.println("?????????...");
13 }
14
15 @Override
16 public void kneadFlour() {
17 //?????????????
18 this.paint();
19 super.kneadFlour();
20 }
21
22 }
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Java???????????Щ???????????????Java????????????????Java?б???Map????????Java Web???????????????Java??????????????д?????Java????????7???????????????????????(java .net ?????)???Java??????????Python??????Java webdriver??λ????????′????е?????Java??д??????????????????Java???????????????JavaScript????????????Java?????????????????? Java???????10??????????????Java?м????????????????java???????ü???????????м???????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????