-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can the Doc container framework support more elegant injection methods (
#757) * I hope to implement a feature where the name of the Resource can be dynamically configured during IoC, so that different view classes can be used at runtime. (close #754) * Can the Doc container framework support more elegant injection methods (close #756)
- Loading branch information
Showing
6 changed files
with
76 additions
and
3 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
15 changes: 15 additions & 0 deletions
15
jcommon/docean/src/test/java/com/xiaomi/youpin/docean/test/demo/mydemo/CallImpl.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,15 @@ | ||
package com.xiaomi.youpin.docean.test.demo.mydemo; | ||
|
||
import com.xiaomi.youpin.docean.anno.Component; | ||
|
||
/** | ||
* @author [email protected] | ||
* @date 2023/11/20 10:33 | ||
*/ | ||
@Component | ||
public class CallImpl implements ICall{ | ||
@Override | ||
public String call() { | ||
return "call"; | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
jcommon/docean/src/test/java/com/xiaomi/youpin/docean/test/demo/mydemo/ICall.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,12 @@ | ||
package com.xiaomi.youpin.docean.test.demo.mydemo; | ||
|
||
/** | ||
* @author [email protected] | ||
* @date 2023/11/20 10:33 | ||
*/ | ||
public interface ICall { | ||
|
||
|
||
String call(); | ||
|
||
} |