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

com.jetbrains.plugin.structure.base.plugin.PluginManager.kt Maven / Gradle / Ivy

Go to download

Base library for parsing JetBrains plugins. Used by other JetBrains Plugins structure libraries.

The newest version!
/*
 * Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
 */

package com.jetbrains.plugin.structure.base.plugin

import java.io.File
import java.nio.file.Path

/**
 * Factory for creating product-agnostic plugins based on their artifacts stored in a [Path].
 *
 * Each implementation is product-specific, such as [com.jetbrains.plugin.structure.intellij.plugin.IdePluginManager]
 * which handles plugins for IntelliJ Platform IDEs.
 */
interface PluginManager {
  @Deprecated(
    message = "Use method with java.nio.Path instead of java.io.File",
    replaceWith = ReplaceWith("createPlugin(pluginFile.toPath())")
  )
  fun createPlugin(pluginFile: File): PluginCreationResult =
    createPlugin(pluginFile.toPath())

  fun createPlugin(pluginFile: Path): PluginCreationResult
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy