Example usage for javax.script ScriptEngineFactory getClass

List of usage examples for javax.script ScriptEngineFactory getClass

Introduction

In this page you can find the example usage for javax.script ScriptEngineFactory getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.jahia.services.render.scripting.bundle.BundleScriptEngineManager.java

private String getFactoryClassName(ScriptEngineFactory factory) {
    return factory instanceof BundleScriptEngineFactory
            ? ((BundleScriptEngineFactory) factory).getWrappedFactoryClassName()
            : factory.getClass().getCanonicalName();
}