| 程序包 | 说明 |
|---|---|
| net.gdface.utils |
| 类和说明 |
|---|
| AnnotationProxy
Description:
InvocationHandler implementation of Annotation that pretends it
is a "real" source code annotation. |
| BaseInterfaceDecorator
实现接口实例
应用层可以根据需要继承此类重写 BaseInterfaceDecorator.invoke(Object, Method, Object[])方法,
也可以通过注册侦听器InterfaceDecoratorProbe在方法调用时实现应用逻辑 |
| BaseParameterNames
获取构造函数或方法的参数名基类
当不能获取参数名的情况下, BaseParameterNames.returnFakeNameIfFail为false时返回null,否则返回返回arg,arg2...格式的替代名BaseParameterNames.returnFakeNameIfFail默认为true |
| BaseVolatile
基于volatile的双重检查锁定实现
ILazyInitVariable的抽象类原理说明参见《The "Double-Checked Locking is Broken" Declaration》 要求 JDK5 以上版本 |
ClassLoaderUtils.ParentStrategy
parent为null时策略defaultParentLoader 使用default parent class loader,参见URLClassLoader.newInstance(URL[])threadContextLoader 使用当前线程的Thread Context ClassLoader作为parent,参见Thread.getContextClassLoader() currentClassLoader 使用当前类(ClassLoaderUtils)的class loader |
| ClassResourceUtils.FileFilter
文件名过滤器接口
|
| ClassResourceUtils.TypeFilter |
| CmdExecutor
linux命令行执行器
|
| CollectionUtils.DualTransformer
dual transform type between L and R
CollectionUtils.DualTransformer.toRight(Object) L -> RCollectionUtils.DualTransformer.fromRight(Object) R -> L |
| CollectionUtils.Function |
| Configuration
读取配置文件(properties)中的参数
|
| CoreDebugLog.OutputString
消息输出接口
应用层通过实现此接口实现日志输出 |
| CoreDebugLog.StandardOutput
基于标准控制台输出的
CoreDebugLog.OutputString实现 |
| Delegator
装饰者模式接口
|
| ILazyInitVariable
延迟初始化(Lazy initialization)变量封装接口
|
| ILazyInitVariable.BaseLazyVar |
| InterfaceContainer
实现接口实例的级联容器
|
InterfaceDecoratorProbe
InterfaceDecorator方法调用侦听器 |
| Pair
A convenience class to represent name-value pairs.
|
| ResourcePool
资源池管理对象
ResourcePool.apply(),ResourcePool.free()用于申请/释放资源,申请的资源对象不可跨线程调用,通过重写 ResourcePool.isNestable()方法决定是否允许嵌套调用 |
| ThreadFactoryBuilder
A ThreadFactory builder, providing any combination of these features:
whether threads should be marked as daemon threads
a naming format
a thread priority
an uncaught exception handler
a backing thread factory
If no backing thread factory is provided, a default backing thread factory is used as if by
calling
setThreadFactory(Executors.defaultThreadFactory()). |
| TimeCostProbe
耗时统计对象
用于程序执行耗时统计 |
| VolatileVariable.VariableGetter |
Copyright © 2023. All Rights Reserved.