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