Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- AbstractActionEvent<A,
SRC> - Class in org.refcodes.observer -
The Class AbstractActionEvent.
- AbstractActionEvent(A, SRC) - Constructor for class org.refcodes.observer.AbstractActionEvent
-
Constructs an event with the given source.
- AbstractActionEvent(SRC) - Constructor for class org.refcodes.observer.AbstractActionEvent
-
Constructs an event with the given source.
- AbstractActionMetaDataEventBuilder(A, EM, SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
-
Constructs an event with the given Meta-Data.
- AbstractActionMetaDataEventBuilder(A, SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
-
Constructs an event with the given Meta-Data.
- AbstractActionMetaDataEventBuilder(EM, SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
-
Constructs an event with the given Meta-Data.
- AbstractActionMetaDataEventBuilder(SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
-
Constructs an event with the given Meta-Data.
- AbstractActionPayloadMetaDataEventBuilder(A, P, EM, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataActionEvent.AbstractActionPayloadMetaDataEventBuilder
-
Constructs an event with the given Meta-Data.
- AbstractActionPayloadMetaDataEventBuilder(A, P, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataActionEvent.AbstractActionPayloadMetaDataEventBuilder
-
Constructs an event with the given Meta-Data.
- AbstractActionPayloadMetaDataEventBuilder(EM, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataActionEvent.AbstractActionPayloadMetaDataEventBuilder
-
Constructs an event with the given Meta-Data.
- AbstractActionPayloadMetaDataEventBuilder(P, EM, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataActionEvent.AbstractActionPayloadMetaDataEventBuilder
-
Constructs an event with the given Meta-Data.
- AbstractActionPayloadMetaDataEventBuilder(P, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataActionEvent.AbstractActionPayloadMetaDataEventBuilder
-
Constructs an event with the given Meta-Data.
- AbstractEvent<SRC> - Class in org.refcodes.observer
-
Basic implementation of the
GenericEvent. - AbstractEvent(SRC) - Constructor for class org.refcodes.observer.AbstractEvent
-
Constructs an event with the given source.
- AbstractEventMatcher<E extends GenericEvent<?>> - Class in org.refcodes.observer
-
Abstract implementation of an
EventMatchertype. - AbstractEventMatcher(String, String) - Constructor for class org.refcodes.observer.AbstractEventMatcher
-
Constructs the
EventMatcherinstance with the given alias (action) and description. - AbstractMetaDataActionEvent<A,
EM extends org.refcodes.mixin.EventMetaData, SRC> - Class in org.refcodes.observer -
Ready to use
GenericActionEventstoring a defined set ofEventMetaData. - AbstractMetaDataActionEvent(A, EM, SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataActionEvent
-
Constructs an event with the given Meta-Data.
- AbstractMetaDataActionEvent(A, SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataActionEvent
-
Constructs an event with the given Meta-Data.
- AbstractMetaDataActionEvent(EM, SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataActionEvent
-
Constructs an event with the given Meta-Data.
- AbstractMetaDataActionEvent(SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataActionEvent
-
Constructs an event with the given Meta-Data.
- AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder<A,
EM extends org.refcodes.mixin.EventMetaData, SRC, B extends GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A, EM, SRC, B>> - Class in org.refcodes.observer -
Implementation of the
GenericActionMetaDataEvent.GenericActionMetaDataEventBuilderinterface for easily creatingMetaDataActionEventinstances. - AbstractMetaDataEvent<EM extends org.refcodes.mixin.EventMetaData,
SRC> - Class in org.refcodes.observer -
Ready to use
GenericActionEventstoring a defined set ofEventMetaData. - AbstractMetaDataEvent(EM, SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataEvent
-
Constructs an event with the given Meta-Data.
- AbstractMetaDataEvent(String, SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataEvent
-
Constructs an event with the given Meta-Data.
- AbstractMetaDataEvent(SRC) - Constructor for class org.refcodes.observer.AbstractMetaDataEvent
-
Constructs an event with the given Meta-Data.
- AbstractObservable<O,
EV> - Class in org.refcodes.observer -
This abstract class provides functionality to implement default refcodes
Observablebehavior. - AbstractObservable() - Constructor for class org.refcodes.observer.AbstractObservable
-
Constructs the
AbstractObservablewith a defaultExecutorServicepool. - AbstractObservable(ExecutorService) - Constructor for class org.refcodes.observer.AbstractObservable
-
Constructs the
AbstractObservablewith a providedExecutorServicepool. - AbstractPayloadActionEvent<A,
P, SRC> - Class in org.refcodes.observer -
Basic implementation of the
GenericActionPayloadEvent. - AbstractPayloadActionEvent(A, P, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadActionEvent
-
Constructs an event with the given Meta-Data.
- AbstractPayloadEvent<P,
SRC> - Class in org.refcodes.observer -
Basic implementation of the
GenericPayloadEvent. - AbstractPayloadEvent(P, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadEvent
-
Constructs an event with the given source.
- AbstractPayloadMetaDataActionEvent<A,
P, EM extends org.refcodes.mixin.EventMetaData, SRC> - Class in org.refcodes.observer -
Basic implementation of the
GenericActionPayloadMetaDataEvent. - AbstractPayloadMetaDataActionEvent(A, P, EM, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataActionEvent
-
Constructs an event with the given Meta-Data.
- AbstractPayloadMetaDataActionEvent(A, P, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataActionEvent
-
Constructs an event with the given Meta-Data.
- AbstractPayloadMetaDataActionEvent(P, EM, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataActionEvent
-
Constructs an event with the given Meta-Data.
- AbstractPayloadMetaDataActionEvent(P, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataActionEvent
-
Constructs an event with the given Meta-Data.
- AbstractPayloadMetaDataActionEvent.AbstractActionPayloadMetaDataEventBuilder<A,
P, EM extends org.refcodes.mixin.EventMetaData, SRC, B extends GenericActionPayloadMetaDataEvent.GenericActionPayloadMetaDataEventBuilder<A, P, EM, SRC, B>> - Class in org.refcodes.observer -
Basic implementation of the
GenericActionPayloadMetaDataEvent.GenericActionPayloadMetaDataEventBuilder. - AbstractPayloadMetaDataEvent<P,
EM extends org.refcodes.mixin.EventMetaData, SRC> - Class in org.refcodes.observer -
Basic implementation of the
GenericActionPayloadEvent. - AbstractPayloadMetaDataEvent(P, EM, SRC) - Constructor for class org.refcodes.observer.AbstractPayloadMetaDataEvent
-
Constructs an event with the given Meta-Data and payload.
- ACTION - Static variable in class org.refcodes.observer.ActionEqualWithEventMatcher
- actionEqualWith(A) - Static method in class org.refcodes.observer.EventMatcherSugar
-
Factory method to create an "ACTION EQUAL WITH" matcher for the given action compared with the action stored in the
EventMetaData. - ActionEqualWithEventMatcher<E extends GenericActionMetaDataEvent<?,
?, ?>> - Class in org.refcodes.observer -
Matches the given action with the action stored in an event's meta data (ACTION EQUAL WITH).
- ActionEqualWithEventMatcher(A) - Constructor for class org.refcodes.observer.ActionEqualWithEventMatcher
-
Instantiates a new action equal with matcher.
- ActionEvent - Interface in org.refcodes.observer
-
An
ActionEventextends theEventand provides additional means to provide an actionActionAccessor.getAction()being of typeEnum. - ActionEventImpl - Class in org.refcodes.observer
-
Basic implementation of the
Eventinterface. - ActionEventImpl(Enum<?>, Object) - Constructor for class org.refcodes.observer.ActionEventImpl
-
Constructs an event with the given source.
- ALIAS - Static variable in class org.refcodes.observer.ActionEqualWithEventMatcher
- ALIAS - Static variable in class org.refcodes.observer.AliasEqualWithEventMatcher
- ALIAS - Static variable in class org.refcodes.observer.CatchAllEventMatcher
- ALIAS - Static variable in class org.refcodes.observer.CatchNoneEventMatcher
- ALIAS - Static variable in class org.refcodes.observer.ChannelEqualWithEventMatcher
- ALIAS - Static variable in class org.refcodes.observer.GroupEqualWithEventMatcher
- ALIAS - Static variable in class org.refcodes.observer.PublisherIsAssignableFromMatcher
- ALIAS - Static variable in class org.refcodes.observer.UniversalIdEqualWithEventMatcher
- ALIAS_KEY - Static variable in class org.refcodes.observer.AliasEqualWithEventMatcher
- aliasEqualWith(String) - Static method in class org.refcodes.observer.EventMatcherSugar
-
Factory method to create an "ALIAS EQUAL WITH" matcher for the given alias compared with the alias stored in the
EventMetaData. - AliasEqualWithEventMatcher<E extends GenericMetaDataEvent<?,
?>> - Class in org.refcodes.observer -
Matches the given alias with the alias stored in an event's meta data (ALIAS EQUAL WITH).
- AliasEqualWithEventMatcher(String) - Constructor for class org.refcodes.observer.AliasEqualWithEventMatcher
-
Instantiates a new alias equal with matcher impl.
- and(EventMatcher<E>...) - Static method in class org.refcodes.observer.EventMatcherSugar
-
Factory method to create an "AND" matcher for the given matchers.
C
- catchAll() - Static method in class org.refcodes.observer.EventMatcherSugar
-
Catches all events, no matching is done.
- CatchAllEventMatcher<E extends GenericMetaDataEvent<?,
?>> - Class in org.refcodes.observer -
Catches all events, no matching is done (CATCH ALL).
- CatchAllEventMatcher() - Constructor for class org.refcodes.observer.CatchAllEventMatcher
-
Constructs the "catch all"
EventMatcherinstance. - catchNone() - Static method in class org.refcodes.observer.EventMatcherSugar
-
Catches no event, no matching is done.
- CatchNoneEventMatcher<E extends GenericMetaDataEvent<?,
?>> - Class in org.refcodes.observer -
Catches no events, no matching is done (CATCH NONE).
- CatchNoneEventMatcher() - Constructor for class org.refcodes.observer.CatchNoneEventMatcher
-
Constructs the "catch all"
EventMatcherinstance. - CHANNEL - Static variable in class org.refcodes.observer.ChannelEqualWithEventMatcher
- channelEqualWith(String) - Static method in class org.refcodes.observer.EventMatcherSugar
-
Factory method to create an "CHANNEL EQUAL WITH" matcher for the given channel compared with the channel stored in the
EventMetaData. - ChannelEqualWithEventMatcher<E extends GenericMetaDataEvent<?,
?>> - Class in org.refcodes.observer -
Matches the given channel with the channel stored in an event's meta data (CHANNEL EQUAL WITH).
- ChannelEqualWithEventMatcher(String) - Constructor for class org.refcodes.observer.ChannelEqualWithEventMatcher
-
Instantiates a new channel equal with matcher impl.
- clear() - Method in class org.refcodes.observer.AbstractObservable
-
Clears all observers from this
AbstractObservable.
D
- disableObservers() - Method in interface org.refcodes.observer.Observers
-
Disables all observables.
- dispose() - Method in class org.refcodes.observer.AbstractObservable
- doHandleEventListenerException(Exception, O, EV, ExecutionStrategy) - Method in class org.refcodes.observer.AbstractObservable
-
This hook method allows you to handle any exceptions being thrown by an event listener whilst invoking a given event.
E
- enableObservers() - Method in interface org.refcodes.observer.Observers
-
Enables all observables.
- Event - Interface in org.refcodes.observer
- EVENT_PUBLISHER_TYPE - Static variable in class org.refcodes.observer.PublisherIsAssignableFromMatcher
- EventImpl - Class in org.refcodes.observer
-
Basic implementation of the
Eventinterface. - EventImpl(Object) - Constructor for class org.refcodes.observer.EventImpl
-
Constructs an event with the given source.
- EventMatcher<E extends GenericEvent<?>> - Interface in org.refcodes.observer
-
This interface typifies the
Matcherinterface for the usage withGenericActionEventinstances. - EventMatcherSugar - Class in org.refcodes.observer
-
Declarative syntactic sugar which may be statically imported in order to allow declarative definitions for the
EventMatcherelements. - EventMatcherSugar() - Constructor for class org.refcodes.observer.EventMatcherSugar
F
- fireEvent(EV, ExecutionStrategy) - Method in class org.refcodes.observer.AbstractObservable
-
To be used by the implementing class when firing an event to it's listeners.
- fireEvent(EV, O, ExecutionStrategy) - Method in class org.refcodes.observer.AbstractObservable
-
This hook method is to be implemented by the implementing class.
G
- GenericActionEvent<A,
SRC> - Interface in org.refcodes.observer -
An
GenericActionEventextends theGenericEventand provides additional means to provide an action viaActionAccessor.getAction()being of a generic type. - GenericActionMetaDataEvent<A,
EM extends org.refcodes.mixin.EventMetaData, SRC> - Interface in org.refcodes.observer -
An
GenericActionMetaDataEventprovides Meta-Data describing theGenericActionEventin more detail and a source being the origin of theGenericActionMetaDataEvent. - GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,
EM extends org.refcodes.mixin.EventMetaData, SRC, B extends GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A, EM, SRC, B>> - Interface in org.refcodes.observer -
Builder extension for the
GenericActionMetaDataEventtype. - GenericActionPayloadEvent<A,
P, SRC> - Interface in org.refcodes.observer -
The
GenericActionPayloadEventrepresents anActionEventwhich carries an additional payload. - GenericActionPayloadMetaDataEvent<A,
P, EM extends org.refcodes.mixin.EventMetaData, SRC> - Interface in org.refcodes.observer -
An
GenericActionPayloadMetaDataEventprovides Meta-Data describing theGenericActionPayloadMetaDataEventin more detail and a payload as well as an action. - GenericActionPayloadMetaDataEvent.GenericActionPayloadMetaDataEventBuilder<A,
P, EM extends org.refcodes.mixin.EventMetaData, SRC, B extends GenericActionPayloadMetaDataEvent.GenericActionPayloadMetaDataEventBuilder<A, P, EM, SRC, B>> - Interface in org.refcodes.observer -
Builder extension for the
GenericActionPayloadMetaDataEventtype. - GenericEvent<SRC> - Interface in org.refcodes.observer
- GenericMetaDataEvent<EM extends org.refcodes.mixin.EventMetaData,
SRC> - Interface in org.refcodes.observer -
An
GenericMetaDataEventprovides Meta-Data describing theGenericActionEventin more detail and a source being the origin of theGenericMetaDataEvent. - GenericPayloadEvent<P,
SRC> - Interface in org.refcodes.observer -
The
GenericPayloadEventrepresents anEventwhich carries an additional payload accessible viaPayloadAccessor.getPayload(). - GenericPayloadMetaDataEvent<P,
EM extends org.refcodes.mixin.EventMetaData, SRC> - Interface in org.refcodes.observer -
An
GenericPayloadMetaDataEventprovides Meta-Data describing theGenericPayloadMetaDataEventin more detail and a payload. - getAction() - Method in class org.refcodes.observer.AbstractActionEvent
- getAlias() - Method in class org.refcodes.observer.AbstractEventMatcher
- getAlias() - Method in class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
- getChannel() - Method in class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
- getEventMatcher() - Method in interface org.refcodes.observer.ObserverDescriptor
-
Returns the
EventMatcherassociated with the givenObserver. - getEventMatcher() - Method in class org.refcodes.observer.ObserverDescriptorImpl
-
Returns the
EventMatcherassociated with the givenObserver. - getGroup() - Method in class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
- getMetaData() - Method in class org.refcodes.observer.AbstractMetaDataActionEvent
- getMetaData() - Method in class org.refcodes.observer.AbstractMetaDataEvent
- getMetaData() - Method in interface org.refcodes.observer.MetaDataActionEvent.ActionMetaDataEventBuilder
- getMetaData() - Method in class org.refcodes.observer.MetaDataActionEventBuilderImpl
- getMetaData() - Method in class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
- getObserver() - Method in interface org.refcodes.observer.ObserverDescriptor
-
Returns the
Observerassociated with the givenEventMatcher. - getObserver() - Method in class org.refcodes.observer.ObserverDescriptorImpl
-
Returns the
Observerassociated with the givenEventMatcher. - getPayload() - Method in class org.refcodes.observer.AbstractPayloadActionEvent
- getPayload() - Method in class org.refcodes.observer.AbstractPayloadEvent
- getPayload() - Method in class org.refcodes.observer.AbstractPayloadMetaDataActionEvent.AbstractActionPayloadMetaDataEventBuilder
- getPayload() - Method in class org.refcodes.observer.AbstractPayloadMetaDataActionEvent
- getPayload() - Method in class org.refcodes.observer.AbstractPayloadMetaDataEvent
- getPublisherType() - Method in class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
- getSource() - Method in class org.refcodes.observer.AbstractEvent
- getThreadPriority() - Method in class org.refcodes.observer.AbstractObservable
-
In case of
ExecutionStrategy.PARALLELorExecutionStrategy.JOIN, the threads' priority is defined by this attribute. - getUniversalId() - Method in class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
- GROUP - Static variable in class org.refcodes.observer.GroupEqualWithEventMatcher
- groupEqualWith(String) - Static method in class org.refcodes.observer.EventMatcherSugar
-
Factory method to create an "GROUP EQUAL WITH" matcher for the given group compared with the group stored in the
EventMetaData. - GroupEqualWithEventMatcher<E extends GenericMetaDataEvent<?,
?>> - Class in org.refcodes.observer -
Matches the given group with the group stored in an event's meta data (GROUP EQUAL WITH).
- GroupEqualWithEventMatcher(String) - Constructor for class org.refcodes.observer.GroupEqualWithEventMatcher
-
Instantiates a new group equal with matcher impl.
H
- hasObserverSubscription(O) - Method in class org.refcodes.observer.AbstractObservable
-
Tests whether the given observer (event listener) has been added to this
Observable. - hasObserverSubscription(O) - Method in interface org.refcodes.observer.Observable
-
Tests whether the given observer (event listener) has been added to this
Observable.
I
- isAssignableFrom(Class<?>) - Static method in class org.refcodes.observer.EventMatcherSugar
-
Factory method to create an event matcher by event type.
- isEmpty() - Method in class org.refcodes.observer.AbstractObservable
-
Determines whether there are observers being registered.
- isMatching(E) - Method in class org.refcodes.observer.ActionEqualWithEventMatcher
-
Tests whether the given
GenericActionEventis matching theMatcher's criteria. - isMatching(E) - Method in class org.refcodes.observer.AliasEqualWithEventMatcher
-
Tests whether the given
GenericActionEventis matching theMatcher's criteria. - isMatching(E) - Method in class org.refcodes.observer.CatchAllEventMatcher
-
Tests whether the given
GenericActionEventis matching theMatcher's criteria. - isMatching(E) - Method in class org.refcodes.observer.CatchNoneEventMatcher
-
Tests whether the given
GenericActionEventis matching theMatcher's criteria. - isMatching(E) - Method in class org.refcodes.observer.ChannelEqualWithEventMatcher
-
Tests whether the given
GenericActionEventis matching theMatcher's criteria. - isMatching(E) - Method in interface org.refcodes.observer.EventMatcher
-
Tests whether the given
GenericActionEventis matching theMatcher's criteria. - isMatching(E) - Method in class org.refcodes.observer.GroupEqualWithEventMatcher
-
Tests whether the given
GenericActionEventis matching theMatcher's criteria. - isMatching(E) - Method in interface org.refcodes.observer.MetaDataEventMatcher
-
Tests whether the given event is matching the mathcer's criteria.
- isMatching(E) - Method in class org.refcodes.observer.PublisherIsAssignableFromMatcher
-
Tests whether the given
GenericActionEventis matching theMatcher's criteria. - isMatching(E) - Method in class org.refcodes.observer.UniversalIdEqualWithEventMatcher
-
Tests whether the given
GenericActionEventis matching theMatcher's criteria. - isObserversActive() - Method in class org.refcodes.observer.AbstractObservable
-
Checks if is observers active.
- isObserversActive() - Method in interface org.refcodes.observer.Observers
-
Returns true when all
Observerinstances are theoretically active (the instance may also decide by itself), else false.
M
- MetaDataActionEvent - Interface in org.refcodes.observer
-
An
MetaDataActionEventis published by anObservableand is consumed by zero to manyObserverinstances. - MetaDataActionEvent.ActionMetaDataEventBuilder - Interface in org.refcodes.observer
-
Builder for the
MetaDataActionEvent. - MetaDataActionEventBuilderImpl - Class in org.refcodes.observer
-
Implementation of the
MetaDataActionEvent.ActionMetaDataEventBuilderinterface for easily creatingMetaDataActionEventinstances. - MetaDataActionEventBuilderImpl(Class<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- MetaDataActionEventBuilderImpl(Enum<?>, Class<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- MetaDataActionEventBuilderImpl(Enum<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- MetaDataActionEventBuilderImpl(Enum<?>, String, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- MetaDataActionEventBuilderImpl(Enum<?>, String, String, String, String, Class<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with the given values for the according properties.
- MetaDataActionEventBuilderImpl(Enum<?>, EventMetaData, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- MetaDataActionEventBuilderImpl(Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- MetaDataActionEventBuilderImpl(String, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- MetaDataActionEventBuilderImpl(String, String, String, String, Class<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with the given values for the according properties.
- MetaDataActionEventBuilderImpl(EventMetaData, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- MetaDataActionEventImpl - Class in org.refcodes.observer
-
The Class MetaDataActionEventImpl.
- MetaDataActionEventImpl(Class<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the according properties.
- MetaDataActionEventImpl(Enum<?>, Class<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the according properties.
- MetaDataActionEventImpl(Enum<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- MetaDataActionEventImpl(Enum<?>, String, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the according properties.
- MetaDataActionEventImpl(Enum<?>, String, String, String, String, Class<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the given values for the according properties.
- MetaDataActionEventImpl(Enum<?>, EventMetaData, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- MetaDataActionEventImpl(Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- MetaDataActionEventImpl(String, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the according properties.
- MetaDataActionEventImpl(String, String, String, String, Class<?>, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the given values for the according properties.
- MetaDataActionEventImpl(EventMetaData, Object) - Constructor for class org.refcodes.observer.MetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- MetaDataEvent - Interface in org.refcodes.observer
- MetaDataEventImpl - Class in org.refcodes.observer
-
Basic implementation of the
Eventinterface. - MetaDataEventImpl(Object) - Constructor for class org.refcodes.observer.MetaDataEventImpl
-
Constructs an event with the given Meta-Data.
- MetaDataEventImpl(String, Object) - Constructor for class org.refcodes.observer.MetaDataEventImpl
-
Constructs an event with the given Meta-Data.
- MetaDataEventImpl(EventMetaData, Object) - Constructor for class org.refcodes.observer.MetaDataEventImpl
-
Constructs an event with the given Meta-Data.
- MetaDataEventMatcher<E extends GenericMetaDataEvent<?,
?>> - Interface in org.refcodes.observer -
This interface typifies the
Matcherinterface for the usage withGenericMetaDataEventinstances.
O
- Observable<O> - Interface in org.refcodes.observer
-
The
Observableinterface 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<?>> - Interface in org.refcodes.observer
-
An
ObservableObserveris an observer, observing an observable. - Observer<E extends GenericEvent<?>> - Interface in org.refcodes.observer
-
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>> - Interface in org.refcodes.observer -
This
ObserverDescriptordescribes theObserver, i.e. in some cases anObserverrequires anEventMatcherwhich determines whichGenericActionEventinstances to pass to theObserver. - ObserverDescriptorImpl<E extends GenericEvent<?>,
O extends Observer<E>, EM extends EventMatcher<E>> - Class in org.refcodes.observer -
As a descriptor describes something fixed, this class is immutable in the sense that there are no setters for the attributes.
- ObserverDescriptorImpl(O, EM) - Constructor for class org.refcodes.observer.ObserverDescriptorImpl
-
Constructs the event listener descriptor with the given event listener and the given event matcher.
- observers() - Method in class org.refcodes.observer.AbstractObservable
-
Observers.
- observers() - Method in interface org.refcodes.observer.Observers
-
Returns an
Iteratorwith the registered observers. - Observers<O,
B extends Observers<O, B>> - Interface in org.refcodes.observer -
Provides methods to manage all subscribed
Observerinstances as a whole and is intended as an extension of theObservableinterface. - onEvent(E) - Method in interface org.refcodes.observer.Observer
-
The listener implementing this interface is notified of an event via this method.
- onEvent(E) - Method in class org.refcodes.observer.ObserverDescriptorImpl
-
The listener implementing this interface is notified of an event via this method.
- onSubscribe(SubscribeEvent<O>) - Method in interface org.refcodes.observer.ObservableObserver
-
This method is called when information about an Observable which was previously requested using an asynchronous interface becomes available.
- onUnsubscribe(UnsubscribeEvent<O>) - Method in interface org.refcodes.observer.ObservableObserver
-
This method is called when information about an Observable which was previously requested using an asynchronous interface becomes available.
- or(EventMatcher<E>...) - Static method in class org.refcodes.observer.EventMatcherSugar
-
Factory method to create an "OR" matcher for the given matchers.
- org.refcodes.observer - module org.refcodes.observer
- org.refcodes.observer - package org.refcodes.observer
-
This package provides types supporting the Observable-Pattern.
P
- PayloadActionEvent<P> - Interface in org.refcodes.observer
-
The
PayloadActionEventrepresents anActionEventwhich carries an additional payload. - PayloadActionEventImpl<P> - Class in org.refcodes.observer
-
The
PayloadActionEventrepresents anActionEventwhich carries an additional payload. - PayloadActionEventImpl(Enum<?>, P, Object) - Constructor for class org.refcodes.observer.PayloadActionEventImpl
-
Constructs an event with the given Meta-Data.
- PayloadEvent<P> - Interface in org.refcodes.observer
-
The
PayloadEventrepresents anEventwhich carries an additional payload accessible viaPayloadAccessor.getPayload(). - PayloadEventImpl<P> - Class in org.refcodes.observer
-
Basic implementation of the
PayloadEventinterface. - PayloadEventImpl(P, Object) - Constructor for class org.refcodes.observer.PayloadEventImpl
-
Constructs an event with the given source.
- PayloadMetaDataActionEvent<P> - Interface in org.refcodes.observer
-
An
PayloadMetaDataActionEventprovides Meta-Data describing thePayloadMetaDataActionEventin more detail and a payload as well as an action. - PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilder<P> - Interface in org.refcodes.observer
-
Builder extension for the
PayloadMetaDataActionEventtype. - PayloadMetaDataActionEventBuilderImpl<P> - Class in org.refcodes.observer
-
Implementation of the
PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilderinterface for easily creatingPayloadMetaDataActionEventinstances. - PayloadMetaDataActionEventBuilderImpl(Class<?>, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- PayloadMetaDataActionEventBuilderImpl(Enum<?>, Class<?>, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- PayloadMetaDataActionEventBuilderImpl(Enum<?>, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventBuilderImpl(Enum<?>, String, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- PayloadMetaDataActionEventBuilderImpl(Enum<?>, String, String, String, String, Class<?>, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given values for the according properties.
- PayloadMetaDataActionEventBuilderImpl(Enum<?>, EventMetaData, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventBuilderImpl(Enum<?>, P, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventBuilderImpl(Enum<?>, P, EventMetaData, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventBuilderImpl(Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventBuilderImpl(String, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- PayloadMetaDataActionEventBuilderImpl(String, String, String, String, Class<?>, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given values for the according properties.
- PayloadMetaDataActionEventBuilderImpl(EventMetaData, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventBuilderImpl(P, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventBuilderImpl(P, EventMetaData, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventImpl<P> - Class in org.refcodes.observer
-
Basic implementation of the
AbstractPayloadMetaDataActionEvent. - PayloadMetaDataActionEventImpl(Enum<?>, Class<?>, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- PayloadMetaDataActionEventImpl(Enum<?>, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventImpl(Enum<?>, String, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventImpl
-
Constructs an event with predefined values for the according properties retrieved from the caller's class.
- PayloadMetaDataActionEventImpl(Enum<?>, String, String, String, String, Class<?>, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventImpl
-
Constructs an event with the given values for the according properties.
- PayloadMetaDataActionEventImpl(Enum<?>, EventMetaData, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventImpl(Enum<?>, P, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventImpl(Enum<?>, P, EventMetaData, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventImpl(P, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataActionEventImpl(P, EventMetaData, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataActionEventImpl
-
Constructs an event with the given Meta-Data.
- PayloadMetaDataEvent<P> - Interface in org.refcodes.observer
-
An
PayloadMetaDataEventprovides Meta-Data describing theGenericPayloadMetaDataEventin more detail and a payload. - PayloadMetaDataEventImpl<P> - Class in org.refcodes.observer
-
Basic implementation of the
PayloadMetaDataEventinterface. - PayloadMetaDataEventImpl(P, EventMetaData, Object) - Constructor for class org.refcodes.observer.PayloadMetaDataEventImpl
-
Constructs an event with the given Meta-Data and payload.
- Publisher<E extends GenericEvent<?>> - Interface in org.refcodes.observer
-
A system publishing
GenericActionEventinstances (such as an event bus), may implement this interface. - publisherIsAssignableFrom(Class<? extends PT>) - Static method in class org.refcodes.observer.EventMatcherSugar
-
Factory method to create an event matcher by event publisher type.
- PublisherIsAssignableFromMatcher<E extends GenericMetaDataEvent<?,
?>, PT> - Class in org.refcodes.observer -
Matches by event publisher type (EVENT PUBLISHER TYPE).
- PublisherIsAssignableFromMatcher(Class<? extends PT>) - Constructor for class org.refcodes.observer.PublisherIsAssignableFromMatcher
-
Instantiates a new publisher is assignable from matcher impl.
- publishEvent(E) - Method in interface org.refcodes.observer.Publisher
-
The listener implementing this interface is notified of an event via this method.
S
- setAction(A) - Method in class org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder
- setAlias(String) - Method in class org.refcodes.observer.MetaDataActionEventBuilderImpl
- setAlias(String) - Method in class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
- setChannel(String) - Method in class org.refcodes.observer.MetaDataActionEventBuilderImpl
- setChannel(String) - Method in class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
- setGroup(String) - Method in class org.refcodes.observer.MetaDataActionEventBuilderImpl
- setGroup(String) - Method in class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
- setMetaData(EventMetaData) - Method in class org.refcodes.observer.MetaDataActionEventBuilderImpl
- setMetaData(EventMetaData) - Method in class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
- setObserversActive(boolean) - Method in class org.refcodes.observer.AbstractObservable
-
Sets the observers active.
- setObserversActive(boolean) - Method in interface org.refcodes.observer.Observers
-
Enables or disables all
Observerinstances. - setPayload(P) - Method in class org.refcodes.observer.AbstractPayloadMetaDataActionEvent.AbstractActionPayloadMetaDataEventBuilder
- setPublisherType(Class<?>) - Method in class org.refcodes.observer.MetaDataActionEventBuilderImpl
- setPublisherType(Class<?>) - Method in class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
- setThreadPriority(int) - Method in class org.refcodes.observer.AbstractObservable
-
In case of
ExecutionStrategy.PARALLELorExecutionStrategy.JOIN, the threads' priority is defined by this attribute. - setUniversalId(String) - Method in class org.refcodes.observer.MetaDataActionEventBuilderImpl
- setUniversalId(String) - Method in class org.refcodes.observer.PayloadMetaDataActionEventBuilderImpl
- size() - Method in class org.refcodes.observer.AbstractObservable
-
Determines the number of observers being registered.
- SubscribeEvent<O extends Observable<?>> - Interface in org.refcodes.observer
-
An
SubscribeEventis published by anObservablewhen an observer is being subscribed. - SubscribeEventImpl<O extends Observable<?>> - Class in org.refcodes.observer
-
The Class SubscribeEventImpl.
- SubscribeEventImpl(O) - Constructor for class org.refcodes.observer.SubscribeEventImpl
-
Instantiates a new subscribe event.
- subscribeObserver(O) - Method in class org.refcodes.observer.AbstractObservable
-
Adds the given observer (event listener).
- subscribeObserver(O) - Method in interface org.refcodes.observer.Observable
-
Adds the given observer (event listener).
T
- toSchema() - Method in class org.refcodes.observer.AbstractEventMatcher
- toSchema() - Method in class org.refcodes.observer.ActionEqualWithEventMatcher
- toSchema() - Method in class org.refcodes.observer.AliasEqualWithEventMatcher
- toSchema() - Method in class org.refcodes.observer.ChannelEqualWithEventMatcher
- toSchema() - Method in class org.refcodes.observer.GroupEqualWithEventMatcher
- toSchema() - Method in class org.refcodes.observer.PublisherIsAssignableFromMatcher
- toSchema() - Method in class org.refcodes.observer.UniversalIdEqualWithEventMatcher
- toString() - Method in class org.refcodes.observer.AbstractMetaDataActionEvent
- toString() - Method in class org.refcodes.observer.AbstractMetaDataEvent
- toString() - Method in class org.refcodes.observer.PayloadEventImpl
U
- UNIVERSAL_ID - Static variable in class org.refcodes.observer.UniversalIdEqualWithEventMatcher
- universalIdEqualWith(String) - Static method in class org.refcodes.observer.EventMatcherSugar
-
Factory method to create an "UNIVERSAL ID EQUAL WITH" matcher for the given UID compared with the UID stored in the
EventMetaData. - UniversalIdEqualWithEventMatcher<E extends GenericMetaDataEvent<?,
?>> - Class in org.refcodes.observer -
Matches the given universal ID with the universal ID stored in an event's meta data (UNIVERSAL ID EQUAL WITH).
- UniversalIdEqualWithEventMatcher(String) - Constructor for class org.refcodes.observer.UniversalIdEqualWithEventMatcher
-
Instantiates a new Universal-ID equal with matcher impl.
- UnsubscribeEvent<O extends Observable<?>> - Interface in org.refcodes.observer
-
An
UnsubscribeEventis published by anObservablewhen an observer is being unsubscribed. - UnsubscribeEventImpl<O extends Observable<?>> - Class in org.refcodes.observer
-
The Class UnsubscribeEventImpl.
- UnsubscribeEventImpl(O) - Constructor for class org.refcodes.observer.UnsubscribeEventImpl
-
Instantiates a new unsubscribe event.
- unsubscribeObserver(O) - Method in class org.refcodes.observer.AbstractObservable
-
Removes the observer (event listener).
- unsubscribeObserver(O) - Method in interface org.refcodes.observer.Observable
-
Removes the observer (event listener).
W
- withAction(A) - Method in interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder
- withAction(Enum<?>) - Method in interface org.refcodes.observer.PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilder
- withAlias(String) - Method in interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder
- withAlias(String) - Method in interface org.refcodes.observer.PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilder
- withChannel(String) - Method in interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder
- withChannel(String) - Method in interface org.refcodes.observer.PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilder
- withDisableObservers() - Method in interface org.refcodes.observer.Observers
-
Builder method for the
Observers.disableObservers()operation. - withEnableObservers() - Method in interface org.refcodes.observer.Observers
-
Builder method for the
Observers.enableObservers()operation. - withGroup(String) - Method in interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder
- withGroup(String) - Method in interface org.refcodes.observer.PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilder
- withMetaData(EM) - Method in interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder
- withMetaData(EventMetaData) - Method in interface org.refcodes.observer.PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilder
- withObserversActive(boolean) - Method in interface org.refcodes.observer.Observers
-
Builder method for the
Observers.setObserversActive(boolean)operation. - withPayload(P) - Method in interface org.refcodes.observer.PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilder
- withPublisherType(Class<?>) - Method in interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder
- withPublisherType(Class<?>) - Method in interface org.refcodes.observer.PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilder
- withUniversalId(String) - Method in interface org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder
- withUniversalId(String) - Method in interface org.refcodes.observer.PayloadMetaDataActionEvent.ActionPayloadMetaDataEventBuilder
_
- _action - Variable in class org.refcodes.observer.AbstractActionEvent
- _eventMetaData - Variable in class org.refcodes.observer.AbstractMetaDataActionEvent
- _eventMetaData - Variable in class org.refcodes.observer.AbstractMetaDataEvent
- _payload - Variable in class org.refcodes.observer.AbstractPayloadActionEvent
- _payload - Variable in class org.refcodes.observer.AbstractPayloadMetaDataEvent
All Classes and Interfaces|All Packages|Constant Field Values