public abstract class EventFactory
extends java.lang.Object
Static factory which creates Event
s.
The main purpose of this class is to allocate unique ids to new
Events
, rather to control all construction of new instances.
All implementations of Event
have public constructors for
unmarshalling. A higher-level class controlling unique id allocation is
necessary in order that unmarshalled events retain their original unique id.
Constructor and Description |
---|
EventFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
create(java.lang.Class<T> name) |
static Event |
create(java.lang.String name)
Create an
Event . |
static Event |
createEvent(AdaptrisMessage msg) |
static Event |
createEvent(AdaptrisMessage msg,
AdaptrisMarshaller marshaller) |
public static Event create(java.lang.String name) throws CoreException
Create an Event
.
name
- the fully qualified class name of the required
Event
.Event
CoreException
- wrapping any underlying Exceptionspublic static <T> T create(java.lang.Class<T> name) throws CoreException
CoreException
create(String)
public static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller) throws CoreException
CoreException
public static Event createEvent(AdaptrisMessage msg) throws CoreException
CoreException