-
Notifications
You must be signed in to change notification settings - Fork 8
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
Jiahui
committed
Aug 20, 2019
1 parent
a68608d
commit 0195ca1
Showing
21 changed files
with
89 additions
and
50 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
spring-ioc-mvc/src/main/java/com/xiaohui/demo/TestController.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
11 changes: 11 additions & 0 deletions
11
spring-ioc-mvc/src/main/java/com/xiaohui/ioc/beans/aware/ApplicationContextAware.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 com.xiaohui.ioc.beans.aware; | ||
|
||
import context.app.ApplicationContext; | ||
|
||
/** | ||
* @author ly | ||
* @create 2019-01-12 16:06 | ||
**/ | ||
public interface ApplicationContextAware { | ||
void setApplicationContext(ApplicationContext applicationContext); | ||
} |
7 changes: 7 additions & 0 deletions
7
spring-ioc-mvc/src/main/java/com/xiaohui/ioc/beans/aware/Aware.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,7 @@ | ||
package com.xiaohui.ioc.beans.aware; | ||
|
||
/** | ||
* Aware接口 用于注入一些需要用到的对象 | ||
*/ | ||
public interface Aware { | ||
} |
8 changes: 8 additions & 0 deletions
8
spring-ioc-mvc/src/main/java/com/xiaohui/ioc/beans/aware/BeanFactoryAware.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,8 @@ | ||
package com.xiaohui.ioc.beans.aware; | ||
|
||
import com.xiaohui.ioc.beans.factory.BeanDefinitionRegistry; | ||
|
||
public interface BeanFactoryAware extends Aware{ | ||
|
||
void setBeanFactory(BeanDefinitionRegistry beanDefinitionRegistry); | ||
} |
4 changes: 2 additions & 2 deletions
4
...ain/java/com/xiaohui/ioc/BeanFactory.java → ...beans/factory/BeanDefinitionRegistry.java
100755 → 100644
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
4 changes: 2 additions & 2 deletions
4
...in/java/com/xiaohui/ioc/BeanRegister.java → ...aohui/ioc/beans/factory/BeanRegister.java
100755 → 100644
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
2 changes: 1 addition & 1 deletion
2
...com/xiaohui/ioc/annotation/Autowired.java → ...c/beans/factory/annotation/Autowired.java
100755 → 100644
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
2 changes: 1 addition & 1 deletion
2
...com/xiaohui/ioc/annotation/Component.java → ...c/beans/factory/annotation/Component.java
100755 → 100644
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
2 changes: 1 addition & 1 deletion
2
...om/xiaohui/ioc/annotation/Controller.java → .../beans/factory/annotation/Controller.java
100755 → 100644
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
2 changes: 1 addition & 1 deletion
2
...iaohui/ioc/annotation/RequestMapping.java → ...ns/factory/annotation/RequestMapping.java
100755 → 100644
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
2 changes: 1 addition & 1 deletion
2
.../xiaohui/ioc/annotation/RequestParam.java → ...eans/factory/annotation/RequestParam.java
100755 → 100644
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
2 changes: 1 addition & 1 deletion
2
...m/xiaohui/ioc/support/BeanDefinition.java → .../beans/factory/config/BeanDefinition.java
100755 → 100644
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.xiaohui.ioc.support; | ||
package com.xiaohui.ioc.beans.factory.config; | ||
|
||
/** | ||
* Bean的元数据类 | ||
|
6 changes: 3 additions & 3 deletions
6
.../ioc/support/BeanDefinitionGenerator.java → ...ctory/config/BeanDefinitionGenerator.java
100755 → 100644
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
4 changes: 2 additions & 2 deletions
4
...hui/ioc/support/BeanDefinitionParser.java → .../factory/config/BeanDefinitionParser.java
100755 → 100644
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
3 changes: 2 additions & 1 deletion
3
spring-ioc-mvc/src/main/java/com/xiaohui/ioc/support/BeanCreater.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
2 changes: 1 addition & 1 deletion
2
spring-ioc-mvc/src/main/java/com/xiaohui/ioc/support/Populator.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
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