All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gov.aps.jca.event.AbstractEventDispatcher Maven / Gradle / Ivy

Go to download

JCA is an EPICS Channel Access library for Java. For more information concerning EPICS or Channel Access please refer to the <a href="http://www.aps.anl.gov/epics">EPICS Web pages</a> or read the <a href="http://www.aps.anl.gov/epics/base/R3-14/8-docs/CAref.html">Channel Access manual (3.14)</a>. <p>This module also includes CAJ, A 100% pure Java implementation of the EPICS Channel Access library.</p>

There is a newer version: 2.4.10
Show newest version
package gov.aps.jca.event;

import java.util.*;


abstract public class AbstractEventDispatcher implements EventDispatcher {

  public void dispatch(ContextMessageEvent ev, ContextMessageListener listener) {
    dispatch(ev, Arrays.asList(new ContextMessageListener[] { listener }));
  }

  public void dispatch(ContextExceptionEvent ev, ContextExceptionListener listener) {
    dispatch(ev, Arrays.asList(new ContextExceptionListener[] { listener }));
  }

  public void dispatch(ConnectionEvent ev, ConnectionListener listener) {
    dispatch(ev, Arrays.asList(new ConnectionListener[] { listener }));
  }

  public void dispatch(AccessRightsEvent ev, AccessRightsListener listener) {
    dispatch(ev, Arrays.asList(new AccessRightsListener[] { listener }));
  }

  public void dispatch(MonitorEvent ev, MonitorListener listener) {
    dispatch(ev, Arrays.asList(new MonitorListener[] { listener }));
  }

  public void dispatch(GetEvent ev, GetListener listener) {
    dispatch(ev, Arrays.asList(new GetListener[] { listener }));
  }

  public void dispatch(PutEvent ev, PutListener listener) {
    dispatch(ev, Arrays.asList(new PutListener[] { listener }));
  }
  
  public void dispose() { /* noop */ }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy