Created
February 13, 2013 00:17
-
-
Save jcoyne/4774986 to your computer and use it in GitHub Desktop.
Fedora4Lib hack in jruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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