Method: RubyWrapperBeanAdapter#initialize

Defined in:
lib/fxmlloader/rrba.rb

#initialize(bean) ⇒ RubyWrapperBeanAdapter

The Bean object to wrap.

Parameters:

  • @bean


49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/fxmlloader/rrba.rb', line 49

def initialize(bean)
  @bean = bean
  type = @bean.java_class
  javas = []
  while type != java.lang.Object.java_class && !@@method_cache.has_key?(type)
    javas += build_cache_for(type)
    type = type.superclass
  end
  #    class_methods = {}
  #    (@bean.public_methods - OBJECT_PUBLIC_METHODS - javas.map{|x|x.name.to_sym}).each do |method_name|
  #      puts "ruby method: #{method_name}"
  #      name = method_name.to_s
  #      unless class_methods.has_key? name
  #        class_methods[name] = []
  #      else
  #        class_methods[name]
  #      end << method_name.to_sym
  #    end
  #    @@method_cache[@bean.class] =
end