An event factory is used to create new events.
To create a new event factory, use the event factory factory, implemented as the class EventFactoryFactory. This class has no instances; instead, it provides two static methods used to create event factories. The choice of which method to use depends upon whether you want to use a content handler to implement automatic content completion. For more information, see Completing event content automatically.
EventFactory eventFactory = (EventFactory) EventFactoryFactory.createEventFactory();
EventFactory eventFactory = (EventFactory) EventFactoryFactory.createEventFactory(contentHandler);
In either case, the returned object is an event factory you can use to create new events.