Package org.restheart.polyglot
Class JSPlugin
java.lang.Object
org.restheart.polyglot.JSPlugin
- Direct Known Subclasses:
JSInterceptor,JSService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
contextQueue
-
-
Constructor Details
-
JSPlugin
public JSPlugin(String name, String description, org.graalvm.polyglot.Source handleSource, String modulesReplacements, Configuration configuration, Optional<com.mongodb.client.MongoClient> mclient, Map<String, String> opts) - Parameters:
name-description-handleSource-modulesReplacements-configuration-mclient-opts-
-
JSPlugin
- Parameters:
args-
-
-
Method Details
-
name
-
getDescription
-
takeCtx
- Returns:
- the Context
- Throws:
InterruptedException
-
releaseCtx
protected void releaseCtx(org.graalvm.polyglot.Context ctx) - Parameters:
ctx-
-
mclient
-
handleSource
public org.graalvm.polyglot.Source handleSource() -
configuration
-
engine
public static org.graalvm.polyglot.Engine engine()
-