Skip to content

Commit

Permalink
Merge pull request #366 from Netflix/diableLifecycleFeatureForSpringB…
Browse files Browse the repository at this point in the history
…indings

check and disable lifecycle features for Spring managed bindings
  • Loading branch information
twicksell authored May 22, 2017
2 parents 75e5594 + 1b31b75 commit 4da850d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ public <T> void onProvision(ProvisionInvocation<T> provision) {
return;
}

//Ignore for Spring-managed bindings
Object source = provision.getBinding().getSource();
if(source != null && source.toString().contains("spring-guice")) {
return;
}

final TypeLifecycleActions actions = getOrCreateActions(injectee.getClass());

// Call all postConstructActions for this injectee
Expand Down

0 comments on commit 4da850d

Please sign in to comment.