< prev index next >

## src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/linker/NashornLinkerExporter.java

Print this page

      25  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
      26  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
      27  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
      28  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
      29  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
      30  */
      31
      32 package jdk.nashorn.api.linker;
      33
      34 import java.util.List;
      35 import jdk.dynalink.linker.GuardingDynamicLinker;
      36 import jdk.dynalink.linker.GuardingDynamicLinkerExporter;
      37 import jdk.nashorn.internal.runtime.linker.Bootstrap;
      38
      39 /**
      40  * This linker exporter is a service provider that exports Nashorn Dynalink
      41  * linkers to external users. Other language runtimes that use Dynalink
      42  * can use the linkers exported by this provider to support tight integration
      43  * of Nashorn objects.
      44  */

      45 public final class NashornLinkerExporter extends GuardingDynamicLinkerExporter {
      46     /**
      47      * The default constructor.
      48      */
      49     public NashornLinkerExporter() {}
      50
      51     /**
      52      * Returns a list of exported nashorn specific linkers.
      53      *
      54      * @return list of exported nashorn specific linkers
      55      */
      56     @Override
      57     public List<GuardingDynamicLinker> get() {
      58         return Bootstrap.getExposedLinkers();
      59     }
      60 }
      25  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
      26  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
      27  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
      28  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
      29  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
      30  */
      31
      32 package jdk.nashorn.api.linker;
      33
      34 import java.util.List;
      35 import jdk.dynalink.linker.GuardingDynamicLinker;
      36 import jdk.dynalink.linker.GuardingDynamicLinkerExporter;
      37 import jdk.nashorn.internal.runtime.linker.Bootstrap;
      38
      39 /**
      40  * This linker exporter is a service provider that exports Nashorn Dynalink
      41  * linkers to external users. Other language runtimes that use Dynalink
      42  * can use the linkers exported by this provider to support tight integration
      43  * of Nashorn objects.
      44  */
      45 @Deprecated(since="11", forRemoval=true)
      46 public final class NashornLinkerExporter extends GuardingDynamicLinkerExporter {
      47     /**
      48      * The default constructor.
      49      */
      50     public NashornLinkerExporter() {}
      51
      52     /**
      53      * Returns a list of exported nashorn specific linkers.
      54      *
      55      * @return list of exported nashorn specific linkers
      56      */
      57     @Override
      58     public List<GuardingDynamicLinker> get() {
      59         return Bootstrap.getExposedLinkers();
      60     }
      61 }

< prev index next >