-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
83a0e56
commit 2d5c75e
Showing
22 changed files
with
349 additions
and
49 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
2 changes: 1 addition & 1 deletion
2
...ring/mvci/runtime/CurrentBeanClasses.java → ...ring/mvci/comment/CurrentBeanClasses.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
2 changes: 1 addition & 1 deletion
2
...spring/mvci/runtime/CurrentBeanNames.java → ...spring/mvci/comment/CurrentBeanNames.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
2 changes: 1 addition & 1 deletion
2
...vci/runtime/CurrentControllerClasses.java → ...vci/comment/CurrentControllerClasses.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
2 changes: 1 addition & 1 deletion
2
.../mvci/runtime/CurrentControllerNames.java → .../mvci/comment/CurrentControllerNames.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
43 changes: 43 additions & 0 deletions
43
src/main/java/firok/spring/mvci/comment/CurrentControllers.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,43 @@ | ||
package firok.spring.mvci.comment; | ||
|
||
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* 当前项目中所有的 controller | ||
* @implNote 此类会在编译期填充内容 this class will be filled during compiling phase | ||
* @since 17.6.0 | ||
* */ | ||
@Configuration | ||
@ConditionalOnExpression("${firok.spring.mvci.runtime.enable-controller-config:false}") | ||
public class CurrentControllers | ||
{ | ||
/** | ||
* <p>获取某个实体类对应的 controller 实例</p> | ||
* <p>Get controller instance of a bean</p> | ||
* | ||
* @param fullQualifiedBeanName 类完整限定名 | ||
* @return controller 实例 | ||
* @implNote 此方法会在编译期填充内容 this method will be filled during compiling phase | ||
*/ | ||
public Object getByFullQualifiedBeanName(String fullQualifiedBeanName) | ||
{ | ||
return switch (fullQualifiedBeanName) | ||
{ | ||
default -> null; | ||
}; | ||
} | ||
|
||
/** | ||
* <p>获取所有 controller 实例</p> | ||
* <p>Get all controller instances of a bean</p> | ||
* | ||
* @return controller 实例 | ||
* @implNote 此方法会在编译期填充内容 this method will be filled during compiling phase | ||
*/ | ||
public Object[] getAllInstances() | ||
{ | ||
return new Object[] { | ||
}; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ng/mvci/runtime/CurrentMapperClasses.java → ...ng/mvci/comment/CurrentMapperClasses.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
2 changes: 1 addition & 1 deletion
2
...ring/mvci/runtime/CurrentMapperNames.java → ...ring/mvci/comment/CurrentMapperNames.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
44 changes: 44 additions & 0 deletions
44
src/main/java/firok/spring/mvci/comment/CurrentMappers.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,44 @@ | ||
package firok.spring.mvci.comment; | ||
|
||
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* 当前项目中所有的 mapper | ||
* @implNote 此类会在编译期填充内容 this class will be filled during compiling phase | ||
* @since 17.6.0 | ||
* */ | ||
@Configuration | ||
@ConditionalOnExpression("${firok.spring.mvci.runtime.enable-mapper-config:false}") | ||
public class CurrentMappers | ||
{ | ||
/** | ||
* <p>获取某个实体类对应的 mapper 实例</p> | ||
* <p>Get mapper instance of a bean</p> | ||
* | ||
* @param fullQualifiedBeanName 类完整限定名 | ||
* @return mapper 实例 | ||
* @implNote 此方法会在编译期填充内容 this method will be filled during compiling phase | ||
*/ | ||
public Object getByFullQualifiedBeanName(String fullQualifiedBeanName) | ||
{ | ||
return switch (fullQualifiedBeanName) | ||
{ | ||
default -> null; | ||
}; | ||
} | ||
|
||
|
||
/** | ||
* <p>获取所有 mapper 实例</p> | ||
* <p>Get all mapper instances of a bean</p> | ||
* | ||
* @return mapper 实例 | ||
* @implNote 此方法会在编译期填充内容 this method will be filled during compiling phase | ||
*/ | ||
public Object[] getAllInstances() | ||
{ | ||
return new Object[] { | ||
}; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...g/mvci/runtime/CurrentServiceClasses.java → ...g/mvci/comment/CurrentServiceClasses.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
2 changes: 1 addition & 1 deletion
2
...ci/runtime/CurrentServiceImplClasses.java → ...ci/comment/CurrentServiceImplClasses.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
2 changes: 1 addition & 1 deletion
2
...mvci/runtime/CurrentServiceImplNames.java → ...mvci/comment/CurrentServiceImplNames.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
44 changes: 44 additions & 0 deletions
44
src/main/java/firok/spring/mvci/comment/CurrentServiceImpls.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,44 @@ | ||
package firok.spring.mvci.comment; | ||
|
||
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* 当前项目中所有的 service impl | ||
* @implNote 此类会在编译期填充内容 this class will be filled during compiling phase | ||
* @since 17.6.0 | ||
* */ | ||
@Configuration | ||
@ConditionalOnExpression("${firok.spring.mvci.runtime.enable-service-impl-config:false}") | ||
public class CurrentServiceImpls | ||
{ | ||
/** | ||
* <p>获取某个实体类对应的 service impl 实例</p> | ||
* <p>Get service impl instance of a bean</p> | ||
* | ||
* @param fullQualifiedBeanName 类完整限定名 | ||
* @return service impl 实例 | ||
* @implNote 此方法会在编译期填充内容 this method will be filled during compiling phase | ||
*/ | ||
public Object getByFullQualifiedBeanName(String fullQualifiedBeanName) | ||
{ | ||
return switch (fullQualifiedBeanName) | ||
{ | ||
default -> null; | ||
}; | ||
} | ||
|
||
|
||
/** | ||
* <p>获取所有 service impl 实例</p> | ||
* <p>Get all service impl instances of a bean</p> | ||
* | ||
* @return service 实例 | ||
* @implNote 此方法会在编译期填充内容 this method will be filled during compiling phase | ||
*/ | ||
public Object[] getAllInstances() | ||
{ | ||
return new Object[] { | ||
}; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ing/mvci/runtime/CurrentServiceNames.java → ...ing/mvci/comment/CurrentServiceNames.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package firok.spring.mvci.runtime; | ||
package firok.spring.mvci.comment; | ||
|
||
/** | ||
* @since 17.2.0 | ||
|
43 changes: 43 additions & 0 deletions
43
src/main/java/firok/spring/mvci/comment/CurrentServices.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,43 @@ | ||
package firok.spring.mvci.comment; | ||
|
||
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** | ||
* 当前项目中所有的 service | ||
* @implNote 此类会在编译期填充内容 this class will be filled during compiling phase | ||
* @since 17.6.0 | ||
* */ | ||
@Configuration | ||
@ConditionalOnExpression("${firok.spring.mvci.runtime.enable-service-config:false}") | ||
public class CurrentServices | ||
{ | ||
/** | ||
* <p>获取某个实体类对应的 service 实例</p> | ||
* <p>Get service instance of a bean</p> | ||
* | ||
* @param fullQualifiedBeanName 类完整限定名 | ||
* @return service 实例 | ||
* @implNote 此方法会在编译期填充内容 this method will be filled during compiling phase | ||
*/ | ||
public Object getByFullQualifiedBeanName(String fullQualifiedBeanName) | ||
{ | ||
return switch (fullQualifiedBeanName) | ||
{ | ||
default -> null; | ||
}; | ||
} | ||
|
||
/** | ||
* <p>获取所有 service 实例</p> | ||
* <p>Get all service instances of a bean</p> | ||
* | ||
* @return service 实例 | ||
* @implNote 此方法会在编译期填充内容 this method will be filled during compiling phase | ||
*/ | ||
public Object[] getAllInstances() | ||
{ | ||
return new Object[] { | ||
}; | ||
} | ||
} |
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 @@ | ||
/** | ||
* MVCI 会在编译时向 firok.spring.mvci.runtime 包生成数个辅助运行时操作的类, | ||
* 这些辅助类的 API 和注释可以在这里找到. | ||
* | ||
* @since 17.2.0 | ||
*/ | ||
package firok.spring.mvci.comment; |
Oops, something went wrong.