📄 beaninfoutil.java
字号:
/* * WebWork, web application framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.util;import java.beans.BeanInfo;import java.beans.IntrospectionException;import java.beans.Introspector;/** * Get the java.beans.BeanInfo object for a given object * * @see java.beans.BeanInfo * @author Rickard 謆erg (rickard@middleware-company.com) * @version $Revision: 1.7 $ */public class BeanInfoUtil{ // Attributes ---------------------------------------------------- Object bean; // Public -------------------------------------------------------- /** * The object whose BeanInfo should be retrieved */ public void setBean(Object aBean) { bean = aBean; } public BeanInfo getBeanInfo() throws IntrospectionException { return Introspector.getBeanInfo(bean.getClass(), Object.class); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -