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

The Implementation Strategy of a Dynamic Session Facade Pattern in EJB Design

在线阅读下载全文

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

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

出  处:《微型电脑应用》2006年第11期62-64,67,共3页Microcomputer Applications

摘  要:会话外观是一种经典的EJB设计模式,其实现通常都是静态的,亦即要将EntityBean的Local Home接口硬编码为会话外观SessionBean具体的实例变量,这在需要封装多个EntityBean时,会话外观SessionBean将变得异常复杂而难以实现和维护。本文通过对以上静态会话外观模式不足的分析,提出了一种基于Java反射机制和接口技术的、动态会话外观模式的实现策略,有效的解决了由单一会话外观来封装多个Entity Bean的问题。Session facade is a classic EJB design pattern, in its implementation, the LocalHome interface of EntityBean is usually used as an instance variable of session facade, which is a static encapsulation. When encapsulating many EntityBeans, the session facade will become especially complexand hard to be realized and maintained. This paper puts forward a dynamical session facade design pattern strategy based on Java reflection and interface technology, successfully solved the issue of encapsulating many EntityBeans by only a session facade bean.

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

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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