001/*******************************************************************************
002 * Copyright (c) 2006-2014 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 ******************************************************************************/
009package org.nuxeo.runtime.trackers.files;
010
011import java.io.File;
012
013import org.nuxeo.runtime.services.event.EventService;
014
015/**
016 * {@link FileEvent} handler that should be implemented by consumers. Could be enlisted in the @{link
017 * {@link EventService} through the use of a {@link FileEventListener}.
018 *
019 * @author Stephane Lacoin at Nuxeo (aka matic)
020 * @since 6.0
021 */
022public interface FileEventHandler {
023
024    public void onFile(File file, Object marker);
025
026}