Skip to content

OSGi fallback resource loading#242

Merged
asfgit merged 1 commit intoapache:masterfrom
neykov:osgi/resource-loading
Jul 12, 2016
Merged

OSGi fallback resource loading#242
asfgit merged 1 commit intoapache:masterfrom
neykov:osgi/resource-loading

Conversation

@neykov
Copy link
Copy Markdown
Member

@neykov neykov commented Jul 8, 2016

No description provided.

throw Exceptions.propagate(e);
}
return Collections.list(resources);
return new ClassLoaderUtils(loader).getResources(name);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClassLoader.getResources() should return an empty Iterable. At first blush, it looks like this might throw an exception, or perhaps return null?

@aledsage
Copy link
Copy Markdown
Contributor

aledsage commented Jul 9, 2016

I like the way you've shared the code - very nice!

Can you add some basic tests, similar to those in ClassLoaderUtils, for getResource and getResources?

@neykov neykov force-pushed the osgi/resource-loading branch from 95d4f8d to 3de0e30 Compare July 12, 2016 12:29
@neykov neykov changed the title [WIP] OSGi fallback resource loading OSGi fallback resource loading Jul 12, 2016
@neykov neykov force-pushed the osgi/resource-loading branch from 3de0e30 to f55e030 Compare July 12, 2016 12:52
@neykov
Copy link
Copy Markdown
Member Author

neykov commented Jul 12, 2016

Addressed comments in a separate commit, to be squashed before merge.

@neykov
Copy link
Copy Markdown
Member Author

neykov commented Jul 12, 2016

Also dispatcher is not the right term for the loaders, any better suggestions?

@aledsage
Copy link
Copy Markdown
Contributor

@neykov LGTM; waiting for jenkins to confirm it works and then will merge.

@neykov
Copy link
Copy Markdown
Member Author

neykov commented Jul 12, 2016

Will squash the changes in that case.

@neykov neykov force-pushed the osgi/resource-loading branch from f55e030 to b0d3070 Compare July 12, 2016 13:16
@asfgit asfgit merged commit b0d3070 into apache:master Jul 12, 2016
asfgit pushed a commit that referenced this pull request Jul 12, 2016
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.

3 participants