Skip to content

Refactor LoadService to make use of resources#1750

Merged
enebo merged 4 commits intojruby:jruby-1_7from
ratnikov:refactor-loadservice
Jul 9, 2014
Merged

Refactor LoadService to make use of resources#1750
enebo merged 4 commits intojruby:jruby-1_7from
ratnikov:refactor-loadservice

Conversation

@ratnikov
Copy link
Contributor

This contains a very heavy refactor of require/load logic. The new version resides in a new LibrarySearcher class, whereas the old methods are deprecated and are not being invoked anymore.

There are four main paths for loading a file:

  1. builtin library
  2. Via a FileResource
  3. As a ServiceLibrary (when requiring 'foo' and java object FooService is being loaded)
  4. Via a classpath.

1-3 are now being handled by LibrarySearcher. 4) still resides as a backdrop in LoadService with intent to being deprecated as well, once a ClasspathResource implementation of FileResource exists.

enebo added a commit that referenced this pull request Jul 9, 2014
Refactor LoadService to make use of resources
@enebo enebo merged commit d3459fe into jruby:jruby-1_7 Jul 9, 2014
@enebo enebo added this to the JRuby 1.7.14 milestone Jul 9, 2014
@enebo
Copy link
Member

enebo commented Jul 9, 2014

My comments will be addressed by @ratnikov in future PR(s)

@enebo enebo modified the milestones: JRuby 1.7.14, JRuby 1.7.15 Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants