1 /*******************************************************************************
2 * Copyright (c) 2019 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Semantum Oy - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.db.service;
15 * Interface for listening DB events.
17 * Note: At the moment, only "purge" is supported.
22 public interface EventSupport {
24 public void addListener(EventListener l);
26 public void removeListener(EventListener l);
29 public interface EventListener extends java.util.EventListener {
32 * @param type Type of the event.
33 * @param data Data related to the event, may be null.
35 public void event(String type, Object data);