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

org.fcrepo.utilities.install.container.Container Maven / Gradle / Ivy

There is a newer version: 3.8.1
Show newest version
/* The contents of this file are subject to the license and copyright terms
 * detailed in the license directory at the root of the source tree (also 
 * available online at http://fedora-commons.org/license/).
 */

/**
 * 
 */
package org.fcrepo.utilities.install.container;

import java.io.File;

import org.fcrepo.utilities.install.Distribution;
import org.fcrepo.utilities.install.InstallOptions;
import org.fcrepo.utilities.install.InstallationFailedException;


/**
 * Abstract class representing a servlet container.
 * 
 * @author Edwin Shin
 */
public abstract class Container {

    private final Distribution dist;

    private final InstallOptions options;

    /**
     * 
     * @param dist
     * @param options
     */
    public Container(Distribution dist, InstallOptions options) {
        this.dist = dist;
        this.options = options;
    }

    public abstract void deploy(File war) throws InstallationFailedException;

    public abstract void install() throws InstallationFailedException;

    protected final Distribution getDist() {
        return dist;
    }

    protected final InstallOptions getOptions() {
        return options;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy