Class AbstractJSPlugin

java.lang.Object
org.restheart.polyglot.AbstractJSPlugin
Direct Known Subclasses:
AbstractJSInterceptor, JavaScriptService, NodeService

public abstract class AbstractJSPlugin extends Object
  • Field Details

    • contextOptions

      protected Map<String,String> contextOptions
    • engine

      protected org.graalvm.polyglot.Engine engine
    • modulesReplacements

      protected String modulesReplacements
    • handleSource

      protected org.graalvm.polyglot.Source handleSource
    • name

      protected String name
    • pluginClass

      protected String pluginClass
    • description

      protected String description
    • uri

      protected String uri
    • secured

      protected boolean secured
    • matchPolicy

      protected RegisterPlugin.MATCH_POLICY matchPolicy
    • interceptPoint

      protected InterceptPoint interceptPoint
    • isService

      protected boolean isService
    • isInterceptor

      protected boolean isInterceptor
    • mclient

      protected com.mongodb.client.MongoClient mclient
    • pluginArgs

      protected Map<String,Object> pluginArgs
    • ctxs

      protected Map<String,org.graalvm.polyglot.Context> ctxs
    • handles

      protected Map<String,org.graalvm.polyglot.Value> handles
  • Constructor Details

  • Method Details

    • context

      public static org.graalvm.polyglot.Context context(org.graalvm.polyglot.Engine engine, Map<String,String> OPTS)
    • getName

      public String getName()
    • getPluginClass

      public String getPluginClass()
    • getUri

      public String getUri()
    • getDescription

      public String getDescription()
    • isSecured

      public boolean isSecured()
    • getMatchPolicy

      public RegisterPlugin.MATCH_POLICY getMatchPolicy()
    • getInterceptPoint

      public InterceptPoint getInterceptPoint()
    • addBindings

      public static void addBindings(org.graalvm.polyglot.Context ctx, String pluginName, Map<String,Object> pluginsArgs, org.slf4j.Logger LOGGER, com.mongodb.client.MongoClient mclient)
    • ctx

      protected org.graalvm.polyglot.Context ctx()
      Returns:
      the Context associated with this thread. If not existing, it instanitates it.
    • handle

      protected org.graalvm.polyglot.Value handle()
      Returns:
      the handle Value associated with this thread. If not existing, it instanitates it.
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable