Package com.technia.tif.enovia.jobevent
Class JobEvents
- java.lang.Object
-
- com.technia.tif.core.util.LockSupport
-
- com.technia.tif.enovia.jobevent.JobEvents
-
- All Implemented Interfaces:
com.technia.common.xml.XMLReadable,com.technia.tif.core.Lockable
@API public class JobEvents extends com.technia.tif.core.util.LockSupport implements com.technia.common.xml.XMLReadableManagesjob event listenersavailable on a job instance. Handles both a registry of listeners for eachJobEventTypeandtriggeringwhen a event occurs.- Since:
- 2015.3.0
-
-
Constructor Summary
Constructors Constructor Description JobEvents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.technia.tif.enovia.jobevent.JobEventListenersgetOnError()com.technia.tif.enovia.jobevent.JobEventListenersgetOnStart()com.technia.tif.enovia.jobevent.JobEventListenersgetOnSuccess()com.technia.tif.enovia.jobevent.JobEventListenersgetOnValidate()voidinitialize(com.technia.common.xml.XMLReader reader)voidlock()voidtrigger(JobEvent event)Trigger an event based on the provided parameter.
-
-
-
Field Detail
-
EMPTY
public static final JobEvents EMPTY
-
-
Method Detail
-
lock
public void lock()
- Specified by:
lockin interfacecom.technia.tif.core.Lockable- Overrides:
lockin classcom.technia.tif.core.util.LockSupport
-
getOnValidate
public com.technia.tif.enovia.jobevent.JobEventListeners getOnValidate()
-
getOnStart
public com.technia.tif.enovia.jobevent.JobEventListeners getOnStart()
-
getOnSuccess
public com.technia.tif.enovia.jobevent.JobEventListeners getOnSuccess()
-
getOnError
public com.technia.tif.enovia.jobevent.JobEventListeners getOnError()
-
trigger
public void trigger(JobEvent event) throws com.technia.tif.enovia.jobevent.JobEventListenerException
Trigger an event based on the provided parameter. The listeners matching theJobEventTypeare invoked.- Parameters:
event- Job event data- Throws:
com.technia.tif.enovia.jobevent.JobEventListenerException- Since:
- 2015.3.0
-
initialize
public void initialize(com.technia.common.xml.XMLReader reader) throws com.technia.common.xml.XMLException- Specified by:
initializein interfacecom.technia.common.xml.XMLReadable- Throws:
com.technia.common.xml.XMLException
-
-