/*
 * @(#)FileDeletedEvent.java
 *
 * Copyright (c) 2002-2003 JSCAPE
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JSCAPE. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JSCAPE.
 */

package com.jscape.file;

import java.util.EventObject;

/**
 * Fired when a file is deleted using the FileUtils class.
 */
public class FileDeletedEvent
        extends EventObject {
    /**
     * Path for file.
     */
    String path = null;

    /**
     * Creates a new FileDeletedEvent instance.
     *
     * @param source the source of the event
     * @param path   the absolute path of the file deleted
     */
    public FileDeletedEvent(final Object source, final String path) {
        super(source);
        this.path = path;
    }

    /**
     * Gets absolute path of the file deleted.
     *
     * @return path of deleted file
     */
    public String getPath() {
        return path;
    }
}
