We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
headius
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make the jruby gem extension more java like. I just want to follow the way dropwizard "adds" their services to a jar file https://github.com/dropwizard/dropwizard/blob/master/dropwizard-metrics/src/main/resources/META-INF/services/io.dropwizard.metrics.ReporterFactory
example lib/ruby/shared/json/ext/parser.jar has the file META-INF/services/org.jruby.Extension with content
json.ext.ParserService
adding a jar to the jruby-classloader (via require or via $CLASSPATH << 'my.jar' will just do something along those lines to load the actual extension
$CLASSPATH << 'my.jar'
for ( url : runtime.getJRubyClassLoader().getResources( "META-INF/services/org.jruby.Extension" ) ) { for (line : loadUrl( url ) { runtime.getJRubyClassLoader().loadClass( line ); } }
whether to keep a list of already loaded extension may or may not be needed.
The text was updated successfully, but these errors were encountered:
would have been a great feature (with some official docs) - loading by hand might not be for every-one.
Sorry, something went wrong.
No branches or pull requests
make the jruby gem extension more java like. I just want to follow the way dropwizard "adds" their services to a jar file https://github.com/dropwizard/dropwizard/blob/master/dropwizard-metrics/src/main/resources/META-INF/services/io.dropwizard.metrics.ReporterFactory
example lib/ruby/shared/json/ext/parser.jar has the file META-INF/services/org.jruby.Extension with content
adding a jar to the jruby-classloader (via require or via
$CLASSPATH << 'my.jar'
will just do something along those lines to load the actual extensionwhether to keep a list of already loaded extension may or may not be needed.
The text was updated successfully, but these errors were encountered: