Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created February 13, 2013 00:17
Show Gist options
  • Save jcoyne/4774986 to your computer and use it in GitHub Desktop.
Save jcoyne/4774986 to your computer and use it in GitHub Desktop.
Fedora4Lib hack in jruby
require 'java'
java_import 'org.fcrepo.services.DatastreamService'
java_import 'org.springframework.context.ApplicationContext'
java_import 'org.springframework.context.support.ClassPathXmlApplicationContext'
ctx = org.springframework.context.support.ClassPathXmlApplicationContext.new("spring-test/repo.xml");
### What property should I get here?
repository = ctx.getBean("repository")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment