public abstract class MethodFactory extends Object
Constructor and Description |
---|
MethodFactory() |
Modifier and Type | Method and Description |
---|---|
static MethodFactory |
createFactory(ClassLoader classLoader)
Based on optional properties, create a new MethodFactory.
|
abstract DynamicMethod |
getAnnotatedMethod(RubyModule implementationClass,
JavaMethodDescriptor desc)
Based on an annotated Java method object, generate a method handle using
the annotation and the target signature.
|
abstract DynamicMethod |
getAnnotatedMethod(RubyModule implementationClass,
List<JavaMethodDescriptor> desc)
Based on a list of annotated Java methods, generate a method handle using
the annotation and the target signatures.
|
public static MethodFactory createFactory(ClassLoader classLoader)
classLoader
- The classloader to use for searching for and
dynamically loading code.public abstract DynamicMethod getAnnotatedMethod(RubyModule implementationClass, List<JavaMethodDescriptor> desc)
implementationClass
- The target class or module on which the method
will be bound.public abstract DynamicMethod getAnnotatedMethod(RubyModule implementationClass, JavaMethodDescriptor desc)
implementationClass
- The target class or module on which the method
will be bound.desc
- A JavaMethodDescriptor describing the target methodCopyright © 2001-2017 JRuby. All Rights Reserved.