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

org.fabric3.runtime.standalone.StandaloneHostInfoImpl Maven / Gradle / Ivy

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.    
 */
package org.fabric3.runtime.standalone;

import java.io.File;
import java.net.URI;
import java.util.Properties;

import org.fabric3.host.runtime.AbstractHostInfo;

/**
 * @version $Rev: 4119 $ $Date: 2008-05-04 08:11:52 +0100 (Sun, 04 May 2008) $
 */
public class StandaloneHostInfoImpl extends AbstractHostInfo implements StandaloneHostInfo {
    private final File extensionsDirectory;
    private final File userExtensionsDirectory;
    private final File configDirectory;

    /**
     * Initializes the base URL, install directory, application root directory and online mode.
     *
     * @param domain            the SCA domain this runtime belongs to
     * @param baseDir           directory containing the standalone installation
     * @param extensionsDir     directory containing the standalone extensions
     * @param userExtensionsDir the directory containing user-contributed extensions
     * @param configDir         directory containing the standalone configuration
     * @param online            true if this runtime should consider itself online
     * @param properties        properties for this runtime
     */
    public StandaloneHostInfoImpl(final URI domain,
                                  final File baseDir,
                                  final File extensionsDir,
                                  File userExtensionsDir, final File configDir,
                                  final boolean online,
                                  final Properties properties) {
        super(domain, baseDir, online, properties);
        this.extensionsDirectory = extensionsDir;
        userExtensionsDirectory = userExtensionsDir;
        this.configDirectory = configDir;
    }

    public File getExtensionsDirectory() {
        return extensionsDirectory;
    }

    public File getUserExtensionsDirectory() {
        return userExtensionsDirectory;
    }

    public File getConfigDirectory() {
        return configDirectory;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy