java ee 平台简介(翻译)

java ee 平台简介(翻译)

ID:2038478

大小:117.00 KB

页数:33页

时间:2017-11-14

java ee 平台简介(翻译)_第1页
java ee 平台简介(翻译)_第2页
java ee 平台简介(翻译)_第3页
java ee 平台简介(翻译)_第4页
java ee 平台简介(翻译)_第5页
资源描述:

《java ee 平台简介(翻译)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、南华大学计算机科学与技术学院实验报告(2013-2014学年度第二学期)课程名称:JAVAEE平台软件开发课程内容:JAVAEE平台简介(翻译)姓名学号专业班级地点教师原文:2.1.1TheBeanContextasaparticipantinnestedstructure(嵌套结构)OneoftherolesoftheBeanContextistointroducethenotion(概念)ofahierarchicalnesting(嵌套层次)orstructureofBeanContextandJavaBeaninstances(实例).Inordertomodelth

2、isstructuretheBeanContextmustexposeAPIthatdefinestherelationshipsinthestructureorhierarchy.TheBeanContextexposesitssuperstructure(上层建筑)throughimplementation(实施)ofthejava.beans.beancontext.BeanContextChildinterface(asdescribedlater).Thisinterfaceallowsthediscoveryandmanipulation(操作)ofaBeanCo

3、ntext’snestingBeanContext,andthusintroducesafacilitytocreateahierarchyofBeanContexts.TheBeanContextexposesitssubstructurethroughanumberofinterfacemethodsmodeledbythejava.util.Collectioninterfacesemantics(语义)BeanContextsarerequiredtoimplementallthemandatory(强制的)CollectionAPI’s,withthefollowi

4、ngparticularsemanticsforadd()andremove():.Theadd()methodmaybeinvokedinordertonestanewObject,BeanContextChild,orBeanContextwithinthetargetBeanContext.Aconformantadd()implementationisrequiredtoadhereto(坚持)thefollowingsemantics:•SynchronizeontheBeanContext.globalHierarchyLock.•Eachchildobjects

5、hallappearonlyonceinthesetofchildrenforagivenBeanContext.IftheinstanceisalreadyamemberoftheBeanContextthenthemethodshallreturnFalse.•Eachvalid(有效的)childshallbeaddedtothesetofchildrenofagivensourceBeanContext,andthusshallappearinthesetofchildren,obtainedthrougheitherthetoArray(),oriterator()

6、methods,untilsuchtimeasthatchildisdeletedfromthenestingBeanContextviaaninvocationofremove(),removeAll(),retainAll(),orclear()•Asthechildisaddedtothesetofnestedchildren,andwherethatchildimplementthejava.beans.beancontext.BeanContextChildinterface(orBeanContextProxy,seelaterfordetails),theBea

7、nContextshallinvokethesetBeanContext()methoduponthatchild,withareferencetoitself.Uponinvocation,achildmay,ifitisforsomereasonunableorunpreparedtofunctioninthatBeanContext,throwaPropertyVetoExceptiontonotifythenestingBeanContext.Ifthechildthrowssuchanexce

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。