Sha256: 137cfa810b625bc01ac6157dba7320dbd941bb94c42015a79b4ce92de1891abf
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
module Droiuby module Wrappers module ProxyBuilder class InvocationHandler def initialize(klass_name, backing_object) puts "autowrap using dexmaker" handler = Java::com.droiuby.wrappers.InvocationHandlerRubyWrapper.new(_execution_bundle, self) @backing_object = backing_object @native = Java::com.droiuby.client.core.InterfaceGenerator.wrapperForClass(_current_activity, klass_name, handler) end def invoke(object, method, params) method_name = method.getName @backing_object.send(method_name, *params) end def to_native @native end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
droiuby-0.2.0 | lib/droiuby/wrappers/proxy_builder/interface_builder.rb |