/**
*
*/
package org.openntf.domino.events;
import java.util.logging.Logger;
import org.openntf.domino.Base;
/**
* @author nfreeman
*
*/
public class GenericDominoEventFactory implements IDominoEventFactory {
private static final long serialVersionUID = 1L;
@SuppressWarnings("unused")
private static final Logger log_ = Logger.getLogger(GenericDominoEventFactory.class.getName());
/**
* @author withersp
*
* Extension of AbstractDominoObject being used by the GenericDominoEventFactory. No additional code currently
*
* @since openntf.domino 3.0.0
*/
public static class GenericDominoEvent extends AbstractDominoEvent {
/**
* Constructor passing all variables used by the GenericDominoEvent
*
* @param event
* EnumEvent this GenericDominoEvent triggers
* @param source
* Base Domino object that is the source of the event
* @param target
* Base Domino object that is the target of the event
* @param payload
* Object being passed as the payload for the event
*
* @since openntf.domino 3.0.0
*/
public GenericDominoEvent(final EnumEvent event, final Base<?> source, final Base<?> target, final Object payload) {
super(event, source, target, payload);
}
}
/**
* Constructor
*/
public GenericDominoEventFactory() {
}
/*
* (non-Javadoc)
*
* @see org.openntf.domino.events.IDominoEventFactory#wrap(org.openntf.domino.events.IDominoEvent)
*/
@Override
public IDominoEvent wrap(final IDominoEvent event) {
return event;
}
/*
* (non-Javadoc)
*
* @see org.openntf.domino.events.IDominoEventFactory#generate(java.lang.Object[])
*/
@Override
public IDominoEvent generate(final EnumEvent event, final org.openntf.domino.Base<?> source, final org.openntf.domino.Base<?> target,
final Object payload) {
return new GenericDominoEvent(event, source, target, payload);
}
/*
* (non-Javadoc)
*
* @see org.openntf.domino.events.IDominoEventFactory#initialize()
*/
@Override
public void initialize() {
// TODO Auto-generated method stub
}
/*
* (non-Javadoc)
*
* @see org.openntf.domino.events.IDominoEventFactory#terminate()
*/
@Override
public void terminate() {
// TODO Auto-generated method stub
}
}