componentwrapper.java

来自「pojo的mvc框架」· Java 代码 · 共 61 行

JAVA
61
字号
package xyz.frame.component;import java.util.Collection;import java.util.List;import xyz.frame.annotations.In;import xyz.frame.annotations.Out;import xyz.frame.interceptor.InterceptorClass;import xyz.frame.introspector.FieldReadParameter;/** * A component wrapper. *  * @author Guilherme Silveira */public class ComponentWrapper implements ComponentType {	private ComponentType type;	public ComponentWrapper(ComponentType component) {		this.type = component;	}	public List<FieldAnnotation<In>> getInAnnotations() {		return type.getInAnnotations();	}	public List<InterceptorClass> getInterceptors() {		return type.getInterceptors();	}	public LogicMethod getLogic(String key) throws LogicNotFoundException {		return type.getLogic(key);	}	public String getName() {		return type.getName();	}	public List<FieldAnnotation<Out>> getOutAnnotations() {		return type.getOutAnnotations();	}	public List<FieldReadParameter> getReadParameters() {		return type.getReadParameters();	}	public Object newInstance() throws ComponentInstantiationException {		return type.newInstance();	}	public Collection<LogicMethod> getLogics() {		return type.getLogics();	}	public Class getComponentClass() {		return type.getComponentClass();	}}

⌨️ 快捷键说明

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