EJB设计中一种动态会话外观模式的实现策略  

The Strategy of A Dynamic SessionFacade Pattern's implemention in EJB Designning

在线阅读下载全文

作  者:潘夕琪[1] 何新英[2] 

机构地区:[1]广州航海高等专科学校信息工程系,广东广州510725 [2]广州航海高等专科学校轮机工程系,广东广州510725

出  处:《电脑知识与技术》2006年第8期156-157,共2页Computer Knowledge and Technology

摘  要:会话外观是一种经典的EJB设计模式,其实现通常都是静态的,亦即要将EntityBean的LocalHome接口硬编码为会话外观SessionBean具体的实例变量,这在需要封装多个EntityBean时,会话外观SessionBean将变得异常复杂而难以实现和维护。本文通过对以上静态会话外观模式不足的分析,提出了一种基于Java反射机制和接口技术的、动态会话外观模式的实现策略,有效的解决了由单一会话外观来封装多个EntityBean的问题。Session facade is a classis EJB design pattern, in it's implementation, the localhome interface of entitybean is usually used as a instance variable of session facade ,which is a static encapsulation, when encapsulating many entitybeans ,the session facade will become very complex and cann't been matainced. This paper contributes a dynamical session facade design pattern strategy,which is based on Java reflection and interfce technology, and has successfially soluved the encapsulating many entitybeans by only a session facade bean.

关 键 词:EJB设计模式 动态会话外观 JAVA反射 接口 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象