Package org.refcodes.observer
This package provides types supporting the Observable-Pattern. E.g. we have
the definitions of an
Observable and the
according Observer.
An Observable for example can be observed by
Observer instances being subscribed to it via
Observable.subscribeObserver(Object).
-
Interface Summary Interface Description ActionEvent AnActionEventextends theEventand provides additional means to provide an actionActionAccessor.getAction()being of typeEnum.ActionMetaDataEvent AnActionMetaDataEventis published by anObservableand is consumed by zero to manyObserverinstances.ActionMetaDataEvent.ActionMetaDataEventBuilder Builder for theActionMetaDataEvent.ActionPayloadEvent<P> TheActionPayloadEventrepresents anActionEventwhich carries an additional payload.ActionPayloadMetaDataEvent<P> AnActionPayloadMetaDataEventprovides Meta-Data describing theActionPayloadMetaDataEventin more detail and a payload as well as an action.ActionPayloadMetaDataEvent.ActionPayloadMetaDataEventBuilder<P> Builder extension for theActionPayloadMetaDataEventtype.Event EventMatcher<E extends GenericEvent<?>> This interface typifies theMatcherinterface for the usage withGenericActionEventinstances.EventMetaData The Meta-Data describes the event which a publisher posts via the event bus to an event subscriber's event listener.EventMetaData.EventMetaDataBuilder GenericActionEvent<A,SRC> AnGenericActionEventextends theGenericEventand provides additional means to provide an action viaActionAccessor.getAction()being of a generic type.GenericActionMetaDataEvent<A,EM extends EventMetaData,SRC> AnGenericActionMetaDataEventprovides Meta-Data describing theGenericActionEventin more detail and a source being the origin of theGenericActionMetaDataEvent.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM extends EventMetaData,SRC,B extends GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>> Builder extension for theGenericActionMetaDataEventtype.GenericActionPayloadEvent<A,P,SRC> TheGenericActionPayloadEventrepresents anActionEventwhich carries an additional payload.GenericActionPayloadMetaDataEvent<A,P,EM extends EventMetaData,SRC> AnGenericActionPayloadMetaDataEventprovides Meta-Data describing theGenericActionPayloadMetaDataEventin more detail and a payload as well as an action.GenericActionPayloadMetaDataEvent.GenericActionPayloadMetaDataEventBuilder<A,P,EM extends EventMetaData,SRC,B extends GenericActionPayloadMetaDataEvent.GenericActionPayloadMetaDataEventBuilder<A,P,EM,SRC,B>> Builder extension for theGenericActionPayloadMetaDataEventtype.GenericEvent<SRC> GenericMetaDataEvent<EM extends EventMetaData,SRC> AnGenericMetaDataEventprovides Meta-Data describing theGenericActionEventin more detail and a source being the origin of theGenericMetaDataEvent.GenericPayloadEvent<P,SRC> TheGenericPayloadEventrepresents anEventwhich carries an additional payload accessible viaPayloadAccessor.getPayload().GenericPayloadMetaDataEvent<P,EM extends EventMetaData,SRC> AnGenericPayloadMetaDataEventprovides Meta-Data describing theGenericPayloadMetaDataEventin more detail and a payload.MetaDataEvent MetaDataEventMatcher<E extends GenericMetaDataEvent<?,?>> This interface typifies theMatcherinterface for the usage withGenericMetaDataEventinstances.Observable<O> TheObservableinterface can be implemented by any class which can be observed byObserverinstances (proposal) or any listener interface (custom as of your needs).ObservableObserver<O extends Observable<?>> AnObservableObserveris an observer, observing an observable.Observer<E extends GenericEvent<?>> The listener of an event subscriber to be fed with events by a event publisher.ObserverDescriptor<E extends GenericEvent<?>,O extends Observer<E>,EM extends EventMatcher<E>> ThisObserverDescriptordescribes theObserver, i.e. in some cases anObserverrequires anEventMatcherwhich determines whichGenericActionEventinstances to pass to theObserver.Observers<O,B extends Observers<O,B>> Provides methods to manage all subscribedObserverinstances as a whole and is intended as an extension of theObservableinterface.PayloadEvent<P> ThePayloadEventrepresents anEventwhich carries an additional payload accessible viaPayloadAccessor.getPayload().PayloadMetaDataEvent<P> AnPayloadMetaDataEventprovides Meta-Data describing theGenericPayloadMetaDataEventin more detail and a payload.Publisher<E extends GenericEvent<?>> A system publishingGenericActionEventinstances (such as an event bus), may implement this interface.SubscribeEvent<O extends Observable<?>> AnSubscribeEventis published by anObservablewhen an observer is being subscribed.UnsubscribeEvent<O extends Observable<?>> AnUnsubscribeEventis published by anObservablewhen an observer is being unsubscribed.