org.jruby.embed
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

Method Summary
<T> T
getInstance(java.lang.Object receiver, java.lang.Class<T> clazz)
          Returns a instance of requested interface type from a previously evaluated script.
 

Method Detail

getInstance

<T> T getInstance(java.lang.Object receiver,
                  java.lang.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.


Copyright © 2002-2009 JRuby Team. All Rights Reserved.