摘要: 从java 1.7开始之后, java并不在提供原生的 apt 工具, 而是提供了丰富的 API来进行支持 对于APT和 reflect 的主要区别在于, 对于 reflect 是属于运行时增强,而 APT是在编译时增强, 相对比而言, 前端编译时增强对性能损耗最小,因为对于用户而言是无感知的; 阅读全文
posted @ 2020-11-27 22:14 郭星 阅读(426) 评论(0) 推荐(0)
摘要: property java beans specification 7 properties Properties are discrete, named attributes of a Java Bean that can affect its appearance or its behaviou 阅读全文
posted @ 2020-11-25 13:22 郭星 阅读(450) 评论(0) 推荐(0)
摘要: /* * Copyright (c) 2020, guoxing, Co,. Ltd. All Rights Reserved */ package com.xingguo.java.beans.properties; import java.beans.*; import java.io.Seri 阅读全文
posted @ 2020-11-24 23:00 郭星 阅读(148) 评论(0) 推荐(0)
摘要: java beans specification 9 customization When a user is composing an application in an application builder we want to allow them tocustomize the appea 阅读全文
posted @ 2020-11-24 22:14 郭星 阅读(205) 评论(0) 推荐(0)
摘要: java beans specification introspection overview 8.1 At runtime and in the builder environment we need to be able to figure out which properties,events 阅读全文
posted @ 2020-11-24 18:06 郭星 阅读(294) 评论(0) 推荐(0)
摘要: /* * Copyright (c) 2020, guoxing, Co,. Ltd. All Rights Reserved */ package com.xingguo.reflection.application; import lombok.extern.slf4j.Slf4j; impor 阅读全文
posted @ 2020-11-23 12:12 郭星 阅读(162) 评论(0) 推荐(0)
摘要: talk is cheap,show me the code; /* * Copyright (c) 2020, guoxing, Co,. Ltd. All Rights Reserved */package com.xingguo.reflection.application;import lo 阅读全文
posted @ 2020-11-23 11:58 郭星 阅读(201) 评论(0) 推荐(1)
摘要: 根据java language 中对于泛型的定义为 The Java Language Specification, Java SE 8 Edition https://docs.oracle.com/javase/specs/ 8.1.2 Generic Classes and Type Para 阅读全文
posted @ 2020-11-19 13:31 郭星 阅读(164) 评论(0) 推荐(0)
摘要: 对于"java.lang.reflect.AccessibleObject",其子类包含 field / executable(java8,其子类包含 method/constructor); /** * Set the {@code accessible} flag for this object 阅读全文
posted @ 2020-11-16 21:47 郭星 阅读(345) 评论(0) 推荐(0)
摘要: 对于java.lang.Reference 一般常用的就是一下几个扩展Reference ,按照强度从高到底依次排序 SoftReference: 软引用, 对于当前引用对象的回收一般发生在jvm内存不足时,当发生gc时会回收当前引用对象; 当使用get方法时,如果没有由于内存不足导致的gc,则ge 阅读全文
posted @ 2020-11-09 20:38 郭星 阅读(123) 评论(0) 推荐(0)