⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inject.java

📁 类似struts2的mvc框架
💻 JAVA
字号:
/** *  Pxb IOC. *  Copyright 2008 Panxiaobo. *  All rights reserved. *  $Id: Inject.java 34 2008-08-16 13:36:08Z Panxiaobo $ */package pxb.ioc;import static java.lang.annotation.ElementType.CONSTRUCTOR;import static java.lang.annotation.ElementType.FIELD;import static java.lang.annotation.ElementType.METHOD;import static java.lang.annotation.ElementType.PARAMETER;import static java.lang.annotation.RetentionPolicy.RUNTIME;import java.lang.annotation.Retention;import java.lang.annotation.Target;/** * <p> * Annotates members and parameters which should have their value[s] injected. *  * @author crazybob@google.com (Bob Lee) * @author Panxiaobo [pxb1988@126.com] Just copy From xwork 2.1.1,Thanks to (Bob *         Lee) to do such a great job. */@Target( { METHOD, CONSTRUCTOR, FIELD, PARAMETER })@Retention(RUNTIME)public @interface Inject{	/**	 * Whether or not injection is required. Applicable only to methods and	 * fields (not constructors or parameters).	 */	boolean required() default true;	/**	 * Dependency name. Defaults to {@link Container#DEFAULT_NAME}.	 */	String value() default pxb.ioc.Container.DEFAULT_NAME;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -