Module watamebot

Class UntrustedPluginLoader<T>

java.lang.Object
net.foxgenesis.watame.plugin.UntrustedPluginLoader<T>
All Implemented Interfaces:
AutoCloseable

public class UntrustedPluginLoader<T> extends Object implements AutoCloseable
  • Constructor Details

    • UntrustedPluginLoader

      public UntrustedPluginLoader(@Nonnull Class<T> pluginClass)
    • UntrustedPluginLoader

      public UntrustedPluginLoader(@Nonnull Class<T> pluginClass, @Nonnull File folder)
      Create a new UntrustedPluginLoader instance and set the directory to use.

      This constructor is effectively equivalent to:

       new PluginLoader(folder, false)
       
      Parameters:
      folder - - The File to search for plugins in.
    • UntrustedPluginLoader

      public UntrustedPluginLoader(@Nonnull Class<T> pluginClass, @Nonnull File folder, boolean mkdirs)
      Create a new UntrustedPluginLoader instance and set the directory to use.
      Parameters:
      folder - - The File to search for plugins in.
      mkdirs - - If folder does not exist, should a new one be made
  • Method Details