Class ExceptionBusEvent
- java.lang.Object
-
- org.refcodes.observer.AbstractEvent<SRC>
-
- org.refcodes.observer.AbstractActionEvent<A,SRC>
-
- org.refcodes.observer.AbstractMetaDataActionEvent<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus>
-
- org.refcodes.eventbus.ext.application.ApplicationBusEventImpl
-
- org.refcodes.eventbus.ext.application.ExceptionBusEvent
-
- All Implemented Interfaces:
ApplicationBusEvent
,org.refcodes.eventbus.GenericEventBusEvent<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus>
,org.refcodes.exception.ExceptionAccessor<Throwable>
,org.refcodes.mixin.ActionAccessor<Enum<?>>
,org.refcodes.mixin.MetaDataAccessor<org.refcodes.mixin.EventMetaData>
,org.refcodes.mixin.SourceAccessor<ApplicationBus>
,org.refcodes.observer.GenericActionEvent<Enum<?>,ApplicationBus>
,org.refcodes.observer.GenericActionMetaDataEvent<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus>
,org.refcodes.observer.GenericEvent<ApplicationBus>
,org.refcodes.observer.GenericMetaDataEvent<org.refcodes.mixin.EventMetaData,ApplicationBus>
public class ExceptionBusEvent extends ApplicationBusEventImpl implements ApplicationBusEvent, org.refcodes.exception.ExceptionAccessor<Throwable>
Implementation of theExceptionBusEvent
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.refcodes.observer.AbstractMetaDataActionEvent
org.refcodes.observer.AbstractMetaDataActionEvent.AbstractActionMetaDataEventBuilder<A extends Object,EM extends org.refcodes.mixin.EventMetaData,SRC extends Object,B extends org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor
org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object>
-
Nested classes/interfaces inherited from interface org.refcodes.eventbus.ext.application.ApplicationBusEvent
ApplicationBusEvent.ApplicationBusEventBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.exception.ExceptionAccessor
org.refcodes.exception.ExceptionAccessor.ExceptionBuilder<EXC extends Throwable,B extends org.refcodes.exception.ExceptionAccessor.ExceptionBuilder<EXC,B>>, org.refcodes.exception.ExceptionAccessor.ExceptionMutator<EXC extends Throwable>, org.refcodes.exception.ExceptionAccessor.ExceptionProperty<EXC extends Throwable>
-
Nested classes/interfaces inherited from interface org.refcodes.observer.GenericActionMetaDataEvent
org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A extends Object,EM extends org.refcodes.mixin.EventMetaData,SRC extends Object,B extends org.refcodes.observer.GenericActionMetaDataEvent.GenericActionMetaDataEventBuilder<A,EM,SRC,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.eventbus.GenericEventBusEvent
org.refcodes.eventbus.GenericEventBusEvent.GenericEventBusEventBuilder<A extends Object,META extends org.refcodes.mixin.EventMetaData,SRC extends org.refcodes.eventbus.GenericEventBus<?,?,?,?,?>,B extends org.refcodes.eventbus.GenericEventBusEvent.GenericEventBusEventBuilder<A,META,SRC,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.MetaDataAccessor
org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD extends Object,B extends org.refcodes.mixin.MetaDataAccessor.MetaDataBuilder<MD,B>>, org.refcodes.mixin.MetaDataAccessor.MetaDataMutator<MD extends Object>, org.refcodes.mixin.MetaDataAccessor.MetaDataProperty<MD extends Object>
-
-
Constructor Summary
Constructors Constructor Description ExceptionBusEvent(Enum<?> aAction, Throwable aException, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.ExceptionBusEvent(Enum<?> aAction, Throwable aException, String aChannel, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.ExceptionBusEvent(Enum<?> aAction, Throwable aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.ExceptionBusEvent(Enum<?> aAction, Throwable aException, String aChannel, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.ExceptionBusEvent(Enum<?> aAction, Throwable aException, ApplicationBus aSource)
Constructs an event with the given Meta-Data.ExceptionBusEvent(Enum<?> aAction, Throwable aException, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource)
Constructs an event with the given Meta-Data.ExceptionBusEvent(Throwable aException, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.ExceptionBusEvent(Throwable aException, String aChannel, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.ExceptionBusEvent(Throwable aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.ExceptionBusEvent(Throwable aException, String aChannel, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.ExceptionBusEvent(Throwable aException, ApplicationBus aSource)
Constructs an event with the given Meta-Data.ExceptionBusEvent(Throwable aException, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource)
Constructs an event with the given Meta-Data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getException()
ApplicationBus
getSource()
String
toString()
-
-
-
Constructor Detail
-
ExceptionBusEvent
public ExceptionBusEvent(Throwable aException, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aException
- The exception to carry.aPublisherType
- The type of the event publisher.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Enum<?> aAction, Throwable aException, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aAction
- The action which this represents.aException
- The exception to carry.aPublisherType
- The type of the event publisher.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Enum<?> aAction, Throwable aException, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource)
Constructs an event with the given Meta-Data.- Parameters:
aAction
- The action which this represents.aException
- The exception to carry.aEventMetaData
- The Meta-Data to by supplied by the event.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Enum<?> aAction, Throwable aException, ApplicationBus aSource)
Constructs an event with the given Meta-Data.- Parameters:
aAction
- The action which this represents.aException
- The exception to carry.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Enum<?> aAction, Throwable aException, String aChannel, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aAction
- The action which this represents.aException
- The exception to carry.aChannel
- The channel name on which the event is receivable.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Enum<?> aAction, Throwable aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.- Parameters:
aAction
- The action which this represents.aException
- The exception to carry.aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-TID) property.aPublisherType
- The type of the event publisher.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Throwable aException, org.refcodes.mixin.EventMetaData aEventMetaData, ApplicationBus aSource)
Constructs an event with the given Meta-Data.- Parameters:
aException
- The exception to carry.aEventMetaData
- The Meta-Data to by supplied by the event.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Throwable aException, ApplicationBus aSource)
Constructs an event with the given Meta-Data.- Parameters:
aException
- The exception to carry.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Throwable aException, String aChannel, ApplicationBus aSource)
Constructs an event with predefined values for the according properties retrieved from the caller's class.- Parameters:
aException
- The exception to carry.aChannel
- The channel name on which the event is receivable.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Throwable aException, String aAlias, String aGroup, String aChannel, String aUid, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.- Parameters:
aException
- The exception to carry.aAlias
- The alias property.aGroup
- The group property.aChannel
- The channel property.aUid
- The UID (Universal-TID) property.aPublisherType
- The type of the event publisher.aSource
- The source from which this event originated.
-
ExceptionBusEvent
public ExceptionBusEvent(Throwable aException, String aChannel, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.- Parameters:
aException
- The exception to carry.aChannel
- The channel for theEventMetaData
.aPublisherType
- The name for theEventMetaData
.aSource
- The according source (origin).
-
ExceptionBusEvent
public ExceptionBusEvent(Enum<?> aAction, Throwable aException, String aChannel, Class<?> aPublisherType, ApplicationBus aSource)
Constructs an event with the given values for the according properties.- Parameters:
aAction
- The action which this represents.aException
- The exception to carry.aChannel
- The channel property.aPublisherType
- The type of the event publisher.aSource
- The source from which this event originated.
-
-
Method Detail
-
getException
public Throwable getException()
- Specified by:
getException
in interfaceorg.refcodes.exception.ExceptionAccessor<Throwable>
-
toString
public String toString()
- Overrides:
toString
in classorg.refcodes.observer.AbstractMetaDataActionEvent<Enum<?>,org.refcodes.mixin.EventMetaData,ApplicationBus>
-
getSource
public ApplicationBus getSource()
- Specified by:
getSource
in interfaceorg.refcodes.mixin.SourceAccessor<ApplicationBus>
- Overrides:
getSource
in classorg.refcodes.observer.AbstractEvent<ApplicationBus>
-
-