All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.javasupport.binding.InterfaceInitializer Maven / Gradle / Ivy

package org.jruby.javasupport.binding;

import org.jruby.Ruby;
import org.jruby.RubyModule;

/**
* Created by headius on 2/26/15.
*/
final class InterfaceInitializer extends Initializer {

    InterfaceInitializer(Ruby runtime, Class javaClass) {
        super(runtime, javaClass);
    }

    @Override
    public RubyModule initialize(RubyModule proxy) {
        final MethodGatherer state = new MethodGatherer(runtime, null);

        state.initialize(javaClass, proxy);

        proxy.getName(); // trigger calculateName()

        return proxy;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy