📄 in.java
字号:
package xyz.frame.annotations;import java.lang.annotation.Documented;import java.lang.annotation.ElementType;import java.lang.annotation.Retention;import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Target;import xyz.frame.scope.ScopeType;/** * Describes a field where injection should be performed. * * @author Guilherme Silveira */@Target(ElementType.FIELD)@Documented@Retention(value = RetentionPolicy.RUNTIME)public @interface In { /** * Should it be created if not found? * * @return true or false */ public boolean create() default false; /** * Is it required? * * @return true or false */ public boolean required() default true; /** * Which scope should be used to search for the object * * @return scope */ public ScopeType scope() default ScopeType.REQUEST; /** * Which key should be used (default to field name) * * @return key */ public String key() default "";}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -