org.xwiki.eventstream.internal
Class DefaultEventFactory

java.lang.Object
  extended by org.xwiki.eventstream.internal.DefaultEventFactory
All Implemented Interfaces:
EventFactory

@Component
@Singleton
public class DefaultEventFactory
extends java.lang.Object
implements EventFactory

Default implementation of the EventFactory, creating DefaultEvent objects as events.

Version:
$Id$

Constructor Summary
DefaultEventFactory()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEventFactory

public DefaultEventFactory()
Method Detail

createEvent

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

Specified by:
createEvent in interface EventFactory
Returns:
a ready-to-use event
See Also:
EventFactory.createEvent()

createRawEvent

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

Specified by:
createRawEvent in interface EventFactory
Returns:
a blank event
See Also:
EventFactory.createRawEvent()


Copyright © 2004-2011 XWiki. All Rights Reserved.