aware(感知) ,比如“BeanNameAware、ApplicationContextAware”
holder(存储,持有) ,比如“ApplicationContextHolder、ConfigHolder”
handler(链式执行),多出现在责任链中,一般不要取这样的名字,避免造成后来者难以理解
builder(创建),比如“SqlSessionFactoryBuilder、StringBuilder”
parser(解析) ,比如“BeanDefinitionParser、ConfigurationClassParser”
resolver(解决),比如“ViewResolver、LocaleResolver”
factory(工厂),比如“BeanFactory”
instance(实例),一般内部的变量使用的,不作为类的命名
processor(处理器),BeanPostProcessor
interceptor(拦截),HandlerInterceptor、MethodInterceptor
adapter(适配),HandlerAdapter
translator(转换),RequestToViewNameTranslator
proxy(代理),AopProxy
accessor(访问),PropertyAccessor
advisor(增强),AspectJPointcutAdvisor
converter(转换), TypeConverter
网友评论