javaee平台简介(翻译)

javaee平台简介(翻译)

ID:8790664

大小:117.00 KB

页数:33页

时间:2018-04-07

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

《javaee平台简介(翻译)》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库

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

2、retheBeanContextmustexposeAPIthatdefinestherelationshipsinthestructureorhierarchy.TheBeanContextexposesitssuperstructure(上层建筑)throughimplementation(实施)ofthejava.beans.beancontext.BeanContextChildinterface(asdescribedlater).Thisinterfaceallowsthediscoveryandmanipulation(操作)ofaBeanContext’snestingBean

3、Context,andthusintroducesafacilitytocreateahierarchyofBeanContexts.TheBeanContextexposesitssubstructurethroughanumberofinterfacemethodsmodeledbythejava.util.Collectioninterfacesemantics(语义)BeanContextsarerequiredtoimplementallthemandatory(强制的)CollectionAPI’s,withthefollowingparticularsemanticsforadd

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

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

6、thenestingBeanContextviaaninvocationofremove(),removeAll(),retainAll(),orclear()•Asthechildisaddedtothesetofnestedchildren,andwherethatchildimplementthejava.beans.beancontext.BeanContextChildinterface(orBeanContextProxy,seelaterfordetails),theBeanContextshallinvokethesetBeanContext()methoduponthatch

7、ild,withareferencetoitself.Uponinvocation,achildmay,ifitisforsomereasonunableorunpreparedtofunctioninthatBeanContext,throwaPropertyVetoExceptiontonotifythenestingBeanContext.Ifthechildthrowssuchanexce

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

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

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