Class KarmaSourceInjector

java.lang.Object
ml.karmaconfigs.api.common.karma.loader.KarmaSourceInjector
All Implemented Interfaces:
AutoCloseable, KarmaAppender

@Deprecated public final class KarmaSourceInjector extends Object implements KarmaAppender
Deprecated.
read KarmaAppender notice
Karma source injector
  • Constructor Details

    • KarmaSourceInjector

      public KarmaSourceInjector(ClassLoader cl)
      Deprecated.
      Initialize the source injector
      Parameters:
      cl - the source class loader
  • Method Details

    • addSource

      public void addSource(URL url)
      Deprecated.
      Add a source to the current path
      Specified by:
      addSource in interface KarmaAppender
      Parameters:
      url - the source file url
    • addSource

      public void addSource(URI uri)
      Deprecated.
      Add a source to the current path
      Specified by:
      addSource in interface KarmaAppender
      Parameters:
      uri - the source file URI
    • addSource

      public void addSource(File file)
      Deprecated.
      Add a source to the current path
      Specified by:
      addSource in interface KarmaAppender
      Parameters:
      file - the source file
    • addSource

      public void addSource(Path path)
      Deprecated.
      Add a source to the current path
      Specified by:
      addSource in interface KarmaAppender
      Parameters:
      path - the source file path
    • close

      public void close()
      Deprecated.
      Close the current appender
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface KarmaAppender
    • getLoader

      public URLClassLoader getLoader()
      Deprecated.
      Get the current URL loader
      Specified by:
      getLoader in interface KarmaAppender
      Returns:
      the current URL loader