Interface GroovierAPI

All Known Implementing Classes:
GroovierCore

public interface GroovierAPI
api of groovier
  • Method Details

    • addScriptLoader

      void addScriptLoader(Class<? extends ScriptLoader> scriptLoader)
      add new scripts type loader
      Parameters:
      scriptLoader - script type loader
    • bindRegisters

      <T extends ScriptValidator> void bindRegisters(Class<T> validator, T ins)
      add new registrable script type for plugin
      Type Parameters:
      T - registrable script type
      Parameters:
      validator - registrable script type
      ins - instance
    • bindInstance

      <T> void bindInstance(Class<T> type, T ins)
      bindInstance for guice
      Type Parameters:
      T - class type
      Parameters:
      type - class type
      ins - instance
    • bindType

      <T, V extends T> void bindType(Class<T> type, Class<V> clazz)
      bind class type for guice
      Type Parameters:
      T - class type
      V - class
      Parameters:
      type - class type
      clazz - class
    • bindProvider

      <T, P extends javax.inject.Provider<T>> void bindProvider(Class<T> type, Class<P> clazz)
      bind provider for guice
      Type Parameters:
      T - class type
      P - provider type
      Parameters:
      type - class type
      clazz - class
    • getBaseInjector

      get injector (without service injection) for guice
      Returns:
      injector
    • getServiceInjector

      get injector (with service injection) for guice
      Returns:
      injector
    • getArgumentParser

      get argument parser
      Returns:
      argument parser