Package com.adaptris.core
Class AdapterStartUpEvent
- java.lang.Object
-
- com.adaptris.core.Event
-
- com.adaptris.core.AdapterLifecycleEvent
-
- com.adaptris.core.AdapterStartUpEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
StandardAdapterStartUpEvent
public abstract class AdapterStartUpEvent extends AdapterLifecycleEvent
Concrete implementations of thisEvent
contains details of theAdapter
configuration.The earliest point in the adapter lifecycle that an event can be emitted is after
init
, therefore this event is always emitted at the end of the initialisation phase.Concrete implementations of this class provide solution-specific behaviour, such as extracting valid receive destinations, sending the entire adapter config, etc.
- See Also:
StandardAdapterStartUpEvent
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AdapterStartUpEvent()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
setAdapter(Adapter adapter)
Sets theAdapter
that generated this start up event.-
Methods inherited from class com.adaptris.core.AdapterLifecycleEvent
getAdapterUniqueId, getNameSpace, getWasSuccessful, setAdapterUniqueId, setWasSuccessful
-
Methods inherited from class com.adaptris.core.Event
createNameSpace, getCreationTime, getDestinationId, getSourceId, getUniqueId, setCreationTime, setDestinationId, setSourceId, setUniqueId
-
-
-
-
Method Detail
-
setAdapter
public abstract void setAdapter(Adapter adapter) throws CoreException
Sets the
Adapter
that generated this start up event. Solution-specific sub-classes should implement this method and extract information that they need (such as valid consume destinations) from theAdapter
object (hence the ability to throwException
s from a set).- Parameters:
adapter
- theAdapter
that generated this start-up event- Throws:
CoreException
- wrapping any underlying Exceptions that may occur
-
-