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

org.wildfly.plugin.dev.CompiledSourceHandler Maven / Gradle / Ivy

Go to download

A maven plugin that allows various management operations to be executed on WildFly Application Server.

There is a newer version: 5.1.1.Final
Show newest version
/*
 * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.wildfly.plugin.dev;

import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.WatchEvent;

import org.apache.maven.plugin.MojoExecutionException;

/**
 * @author James R. Perkins
 */
class CompiledSourceHandler implements WatchHandler {

    @Override
    public Result handle(final WatchContext context, final WatchEvent event, final Path file)
            throws IOException, MojoExecutionException {
        return new Result() {
            @Override
            public boolean requiresRecompile() {
                return true;
            }

            @Override
            public boolean requiresRedeploy() {
                return true;
            }

            @Override
            public boolean requiresRepackage() {
                return true;
            }
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy