forked from springframeworkguru/sfg-di
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
36 additions
and
15 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
src/main/java/guru/springframework/sfgdi/controllers/ConstructorInjectedController.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
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
11 changes: 11 additions & 0 deletions
11
src/main/java/guru/springframework/sfgdi/services/ConstructorGreetingService.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,11 @@ | ||
package guru.springframework.sfgdi.services; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class ConstructorGreetingService implements GreetingService { | ||
@Override | ||
public String sayGreeting() { | ||
return "Hello World! - Constructor"; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/guru/springframework/sfgdi/services/PropertyInjectedGreetingService.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,11 @@ | ||
package guru.springframework.sfgdi.services; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class PropertyInjectedGreetingService implements GreetingService { | ||
@Override | ||
public String sayGreeting() { | ||
return "Hello World! - Property"; | ||
} | ||
} |
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
6 changes: 2 additions & 4 deletions
6
src/test/java/guru/springframework/sfgdi/controllers/ConstructorInjectedControllerTest.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
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
6 changes: 2 additions & 4 deletions
6
src/test/java/guru/springframework/sfgdi/controllers/SetterInjectedControllerTest.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