org.xwiki.eventstream
Interface EventFactory


@Role
public interface EventFactory

A factory which creates Event objects ready to be used. Besides instantiating an Event object, the factory also fills in some of the fields with the default values, for example a new event ID, the current event group id, the current user, and the current date.

Since:
3.0M2
Version:
$Id: dfbb31dd494d88f1fab6b05f3a21301fd6dc9645 $

Method Summary
 Event createEvent()
          Create a new event with some fields already filled in.
 Event createRawEvent()
          Create a new event without any of the fields filled in.
 

Method Detail

createEvent

Event createEvent()
Create a new event with some fields already filled in.

Returns:
a ready-to-use event

createRawEvent

Event createRawEvent()
Create a new event without any of the fields filled in.

Returns:
a blank event


Copyright © 2004-2013 XWiki. All Rights Reserved.