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

com.irotsoma.cloudbackenc.common.Extension.kt Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2016-2018  Irotsoma, LLC
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see 
 */

package com.irotsoma.cloudbackenc.common

/**
 * Base Service Extension configuration class populated by json from the extension's resources
 *
 * @author Justin Zak
 * @property extensionName Human readable name of service
 * @property extensionUuid Internal UUID of the service
 * @property packageName Full package name of the factory class for the service
 * @property factoryClass Name of the factory class for the service
 * @property releaseVersion Incremental version number for the release.  This allows the system to load only the latest version of an extension and is separate from the version name.
 */
abstract class Extension(){
    var extensionUuid: String = ""
    var extensionName: String = ""
    var packageName: String? = null
    var factoryClass: String? = null
    var releaseVersion: Int= 0

    /**
     * Alternate constructor with all properties as parameters
     */
    constructor(extensionUuid: String, extensionName: String, packageName: String, factoryClass: String, releaseVersion: Int):this(){
        this.extensionUuid =extensionUuid
        this.extensionName =extensionName
        this.packageName=packageName
        this.factoryClass=factoryClass
        this.releaseVersion=releaseVersion
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy