http://www.cnblogs.com/java-my-life/archive/2012/05/07/2480938.html
http://alicharles.com/article/jdk-bridge-pattern/

-
abstract class Abstraction {
-
-
protected Implementor impl;
-
-
public Abstraction(Implementor impl) {
-
this.impl = impl;
-
}
-
-
-
public void operation() {
-
-
impl.operationImpl();
-
}
-
}
-
-
class RefinedAbstraction extends Abstraction {
-
-
public RefinedAbstraction(Implementor impl) {
-
super(impl);
-
}
-
-
-
public void otherOperation() {
-
-
}
-
}
-
-
abstract class Implementor {
-
-
-
-
public abstract void operationImpl();
-
}
-
-
class ConcreteImplementorA extends Implementor {
-
-
@Override
-
public void operationImpl() {
-
-
}
-
-
}
-
-
class ConcreteImplementorB extends Implementor {
-
-
@Override
-
public void operationImpl() {
-
-
}
-
-
}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29254281/viewspace-2136241/
,如需转载,请注明出处,否则将追究法律责任。