Permalink
Browse files

better method name

  • Loading branch information...
fabiokung committed Dec 2, 2008
1 parent 09a8a44 commit 1cdc471a8ff14547a5bed0fae5c84d39faf17155
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jetty_rails/handler/web_app_handler.rb
@@ -7,7 +7,7 @@ def initialize(config)
super("/", config[:context_path])
@config = config

self.class_loader = new_classloader_for_application_context
self.class_loader = each_context_has_its_own_classloader
self.resource_base = config[:base]
self.descriptor = config[:web_xml]

@@ -61,7 +61,7 @@ def add_classes_dir_to_classpath(config)
url = java.io.File.new(classes_dir).to_url
self.class_loader.add_url(url)
end
def new_classloader_for_application_context()
def each_context_has_its_own_classloader()
org.jruby.util.JRubyClassLoader.new(JRuby.runtime.jruby_class_loader)
end
end

0 comments on commit 1cdc471

Please sign in to comment.