![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
反射
文章平均质量分 86
程序员闫帆
程序员闫帆
展开
-
自己动手打造ICO容器
需要五个类 (容器类),需要用此容器管理的类全部集成此类 package com.metarnet.extend; import java.lang.reflect.Field; import com.metarnet.Injects.Inject; /** * 容器 */ public class IOC { /** * 初始化 *原创 2012-11-16 12:35:16 · 879 阅读 · 0 评论 -
重复造轮子--IOC容器的AOP简单实现
之前给大家写过一个简单的IOC容器,这个AOP功能就是在这个上面添加的 写 Intercept 类 继承 InvocationHandler public class Intercept implements InvocationHandler{ /** * 要处理的对象(也就是我们要在方法的前后加上业务逻辑的对象,如例子中的Hello) */ priva原创 2012-11-17 11:09:29 · 1190 阅读 · 0 评论 -
重复造轮子:注释的使用
package com.metarnet.model; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import jav原创 2012-11-16 10:32:53 · 907 阅读 · 0 评论 -
java对象拷贝
package com.unicom.ucloud.eom.common.util; import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang原创 2013-03-14 11:48:01 · 1031 阅读 · 0 评论 -
Map转Object
package com.unicom.ucloud.eom.fastProcess.util; import java.beans.BeanInfo; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Method; import java.sql.Time原创 2013-03-05 10:29:04 · 1331 阅读 · 0 评论