Skip to content
New issue

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

Add support for default injection of attributes defined by interface #34

Closed
wants to merge 2 commits into from

Conversation

McFoggy
Copy link

@McFoggy McFoggy commented Oct 16, 2014

small contribution to provide a default behavior in Afterburner to inject fields which type is an interface. For interfaces only, a delegation to ServiceLoader (standard servie-provider mechanism of JRE) is performed.

Of course this could be achieved externally by setting a home made InstanceSupplier to the Injector.
I found valuable to provide a default behavior for interfaces injection, so here it is.

@McFoggy McFoggy changed the title Add support for default injection of interface attributes Add support for default injection of attributes defined by interface Oct 16, 2014
@AdamBien
Copy link
Owner

Changes are merged into topgun branch

@AdamBien AdamBien closed this Nov 21, 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.

None yet

2 participants