|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.embed.internal.EmbedRubyInterfaceAdapterImpl
public class EmbedRubyInterfaceAdapterImpl
The implementation of EmbedRubyInterfaceAdapter
and implements the
method that gets a instance of requested interface, which is implemented in Ruby.
Constructor Summary | |
---|---|
EmbedRubyInterfaceAdapterImpl(ScriptingContainer container)
|
Method Summary | ||
---|---|---|
|
getInstance(java.lang.Object receiver,
java.lang.Class<T> clazz)
Returns a instance of a requested interface type from a previously evaluated script. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmbedRubyInterfaceAdapterImpl(ScriptingContainer container)
Method Detail |
---|
public <T> T getInstance(java.lang.Object receiver, java.lang.Class<T> clazz)
getInstance
in interface EmbedRubyInterfaceAdapter
receiver
- a receiver of the previously evaluated script.clazz
- an interface type of the returning instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |