12345678910111213141516171819 |
- package com.sf.aop.proxy;
- /**
- * 接受代理需求的店铺
- */
- public class GamePlayerProxy implements IGamePlayer{
- // 店铺合作的小代
- private IGamePlayer player;
- public GamePlayerProxy(IGamePlayer player) {
- this.player = player;
- }
- @Override
- public void playGame() {
- // 指派小代去玩儿游戏
- this.player.playGame();
- }
- }
|