Class PapPublisher
java.lang.Object
cn.net.pap.common.datastructure.observer.PapPublisher
- All Implemented Interfaces:
PapSubject
被观察者 - 维护一个观察者列表.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addNextPapSubject
(PapSubject nextSubject) 下一个观察者列表,可以实现类似自动走流程.void
void
callNotify
(Object obj) void
-
Constructor Details
-
PapPublisher
public PapPublisher()
-
-
Method Details
-
attach
- Specified by:
attach
in interfacePapSubject
-
addNextPapSubject
下一个观察者列表,可以实现类似自动走流程.- Specified by:
addNextPapSubject
in interfacePapSubject
- Parameters:
nextSubject
-
-
detach
- Specified by:
detach
in interfacePapSubject
-
callNotify
- Specified by:
callNotify
in interfacePapSubject
-