Interface EmbedRubyInterfaceAdapter

All Known Implementing Classes:
EmbedRubyInterfaceAdapterImpl

public interface EmbedRubyInterfaceAdapter
This interface defines a method to get a instance of requested interface, which is implemented in Ruby.
Author:
Yoko Harada <[email protected]>
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getInstance(Object receiver, Class<T> clazz)
    Returns a instance of requested interface type from a previously evaluated script.
  • Method Details

    • getInstance

      <T> T getInstance(Object receiver, Class<T> clazz)
      Returns a instance of requested interface type from a previously evaluated script.
      Parameters:
      receiver - a receiver of the previously evaluated script.
      clazz - an interface type of the returning instance.
      Returns:
      an instance of requested interface type.