Skip to content

Commit

Permalink
Adds convenience constructor for SpringManagedContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Matko Medenjak committed Jan 3, 2020
1 parent 73fb379 commit 92e5780
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public class SpringManagedContext implements ManagedContext, ApplicationContextA
public SpringManagedContext() {
}

public SpringManagedContext(ApplicationContext applicationContext) {
setApplicationContext(applicationContext);
}

@Override
public Object initialize(Object obj) {
Object resultObject = obj;
Expand Down

0 comments on commit 92e5780

Please sign in to comment.