-
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
0ec5d83
commit 3eb013b
Showing
26 changed files
with
800 additions
and
429 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package firok.spring.mvci; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* <p> | ||
* 标注于注解字段, 标明此字段可接受的值. | ||
* </p> | ||
* <p> | ||
* marked on annotation fields to indicate what values could be taken. | ||
* </p> | ||
*/ | ||
@Retention(RetentionPolicy.CLASS) | ||
@Target(ElementType.METHOD) | ||
public @interface AvailableValues | ||
{ | ||
String[] value(); | ||
} |
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,24 +1,29 @@ | ||
package firok.spring.mvci; | ||
|
||
import firok.spring.mvci.internal.DefaultControllerTemplate; | ||
import firok.spring.mvci.internal.DefaultMapperTemplate; | ||
import firok.spring.mvci.internal.DefaultServiceImplTemplate; | ||
import firok.spring.mvci.internal.DefaultServiceTemplate; | ||
|
||
public final class Constants | ||
{ | ||
public static final String DEFAULT_MAPPER_TEMPLATE = DefaultMapperTemplate.VALUE; | ||
public static final String BEAN_NAME_FULL = "##BEAN_NAME_FULL##"; | ||
public static final String BEAN_NAME_SHORT = "##BEAN_NAME_SHORT##"; | ||
public static final String BEAN_PACKAGE = "##BEAN_PACKAGE##"; | ||
public static final String BASE_PACKAGE = "##BASE_PACKAGE##"; | ||
|
||
public static final String DEFAULT_SERVICE_TEMPLATE = DefaultServiceTemplate.VALUE; | ||
public static final String MAPPER_NAME = "##MAPPER_NAME##"; | ||
public static final String SERVICE_NAME = "##SERVICE_NAME##"; | ||
public static final String SERVICE_IMPL_NAME = "##SERVICE_IMPL_NAME##"; | ||
public static final String CONTROLLER_NAME = "##CONTROLLER_NAME##"; | ||
|
||
public static final String DEFAULT_SERVICE_IMPL_TEMPLATE = DefaultServiceImplTemplate.VALUE; | ||
public static final String MAPPER_PACKAGE = "##MAPPER_PACKAGE##"; | ||
public static final String SERVICE_PACKAGE = "##SERVICE_PACKAGE##"; | ||
public static final String SERVICE_IMPL_PACKAGE = "##SERVICE_IMPL_PACKAGE##"; | ||
public static final String CONTROLLER_PACKAGE = "##CONTROLLER_PACKAGE##"; | ||
|
||
public static final String DEFAULT_CONTROLLER_TEMPLATE = DefaultControllerTemplate.VALUE; | ||
public static final String TRUE = "##TRUE##"; | ||
public static final String FALSE = "##FALSE##"; | ||
public static final String DEFAULT = "##DEFAULT##"; | ||
|
||
/** | ||
* 如果标注为 DISABLE, 将不会生成指定结构 | ||
*/ | ||
public static final String DISABLE = "##DISABLE##"; | ||
public static final String PREFER_TRUE = "##PERFER_TRUE##"; | ||
public static final String PREFER_FALSE = "##PERFER_FALSE##"; | ||
public static final String PREFER_DEFAULT = "##PREFER_DEFAULT##"; | ||
|
||
public static final String DEFAULT = "##DEFAULT##"; | ||
public static final String CUSTOM = "##CUSTOM##"; | ||
} |
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
Oops, something went wrong.