Sha256: 23bbd0e90c51acee1fecb0d8939c82526d27d8455a3108d1cf1c67e542bd405f

Contents?: true

Size: 534 Bytes

Versions: 5

Compression:

Stored size: 534 Bytes

Contents

require 'sinatra'

# If you want to have auto reload in development mode (what is sweet)
# you can uncomment this following lines:
#
# configure :development do
#   Sinatra::Application.reset!  # to reload routes and its contents
#   use Rack::Reloader           # to reload required every files
# end

get '/some' do
  import 'Some'  # using import
  
  some = Some.new
  "From WEB-INF/classes: #{some.say}"
end

get '/other' do
  other = Java::Other.new  # or directly by the Java "namespace"
  "From WEB-INF/lib: #{other.say}"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jetty-rackup-7.2.0 examples/using_java/app.rb
jetty-rackup-7.1.0 examples/using_java/app.rb
jetty-rackup-7.0.0 examples/using_java/app.rb
jetty-rackup-0.2.0 examples/using_java/app.rb
jetty-rackup-0.1.0 examples/using_java/app.rb