org.fabric3.scanner.impl.ScannerMonitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fabric3-contribution-scanner Show documentation
Show all versions of fabric3-contribution-scanner Show documentation
Fabric3 Contribution Scanner Implementation.
/*
* Fabric3
* Copyright ? 2008 Metaform Systems Limited
*
* This proprietary software may be used only connection with the Fabric3 license
* (the ?License?), a copy of which is included in the software or may be
* obtained at: http://www.metaformsystems.com/licenses/license.html.
* Software distributed under the License is distributed on an ?as is? basis,
* without warranties or conditions of any kind. See the License for the
* specific language governing permissions and limitations of use of the software.
* This software is distributed in conjunction with other software licensed under
* different terms. See the separate licenses for those programs included in the
* distribution for the permitted and restricted uses of such software.
*
*/
package org.fabric3.scanner.impl;
import org.fabric3.api.annotation.logging.Info;
import org.fabric3.api.annotation.logging.Severe;
/**
* Monitoring interface for the DirectoryScanner
*
* @version $Rev: 6523 $ $Date: 2009-02-07 23:45:22 -0800 (Sat, 07 Feb 2009) $
*/
public interface ScannerMonitor {
/**
* Called when a contribution is deployed.
*
* @param name the name of the contribution
*/
@Info
void deployed(String name);
/**
* Called when a contribution is removed
*
* @param name the name of the contribution
*/
@Info
void removed(String name);
/**
* Called when a contribution is updated
*
* @param name the name of the contribution
*/
@Info
void updated(String name);
/**
* Called when a general error is encountered processing a contribution
*
* @param e the error
*/
@Severe
void error(Throwable e);
/**
* Called when an error is encountered removing a contribution
*
* @param filename the file being removed
* @param e the error
*/
@Severe
void removalError(String filename, Throwable e);
/**
* Called when errors are encountered processing contributions
*
* @param description a description of the errors
*/
@Severe
void contributionErrors(String description);
/**
* Called when errors are encountered during deployments
*
* @param description a description of the errors
*/
@Severe
void deploymentErrors(String description);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy