-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-1405: take setter injection into account while indexing injection …
…points
- Loading branch information
1 parent
b5fff4e
commit 899b737
Showing
4 changed files
with
188 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...ojects/test-spring-indexing/src/main/java/org/test/injections/SetterInjectionService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.test.injections; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.beans.factory.annotation.Qualifier; | ||
import org.springframework.stereotype.Service; | ||
import org.test.BeanClass1; | ||
import org.test.BeanClass2; | ||
|
||
@Service | ||
public class SetterInjectionService { | ||
|
||
private BeanClass1 bean1; | ||
private BeanClass2 bean2; | ||
|
||
private BeanClass1 somethingElse; | ||
|
||
public SetterInjectionService() { | ||
} | ||
|
||
@Autowired | ||
@Qualifier("setter-injection-qualifier") | ||
public void setBean1(BeanClass1 bean1) { | ||
this.bean1 = bean1; | ||
} | ||
|
||
@Autowired | ||
public void setBean2(@Qualifier("setter-injection-qualifier-on-param") BeanClass2 bean2) { | ||
this.bean2 = bean2; | ||
} | ||
|
||
public void setSomethingElse(BeanClass1 somethingElseNotInjected) { | ||
this.somethingElse = somethingElseNotInjected; | ||
} | ||
|
||
} |