J2EE???? - PowerPoint PPT Presentation

About This Presentation
Title:

J2EE????

Description:

Title: 1 Author: peng Last modified by: peng Created Date: 3/10/2004 2:32:03 AM Document presentation format: Company – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 20
Provided by: Peng59
Category:
Tags: j2ee

less

Transcript and Presenter's Notes

Title: J2EE????


1
J2EE????
  • ???(????)

http//www.jdon.com
2
????????????
  • J2EE?????????????????????????
  • ????????????,?OOP???????
  • ??????????????????????????

3
GoF????
  • GoF????????????23???
  • Java?GoF??????????????????
  • ???????????????

4
??????
  • ????Class???AClass,????????,????Class????????,??AC
    lass????AInterface,????AClass???????
  • AInterface a new AClass()

5
??????(?)
  • ???????
  • AInterface a Afactory.create() //??2
  • ????2??????Afactory?create?????AInterface??

6
??????(?)
  • Afactory?create????????????
  • ????????????,????????,??????
  • Afactory?create????
  • public static AInterface create()
  • return new AClass()

7
EJB??????????
  • ??EJB ??EJBHome em JNDIServer.getRemoteHome(EJ
    B-JNDI-NAME) EJBObject myEJB em.create()
  • em.create()??Afactory.create()
  • EJBObject ???

8
Façade??
9
?? Bean???Bean
  • ????Bean???????Bean
  • ???Bean???Façade?/Manager?
  • ??Façade ??Bean??1. ????,???????????Bean?????2.
    ????,???????

10
DTO??
  • DTO????VO??,???????????JavaBeans,?J2EE?????????
  • DTO????,???????Message
  • ?JavaBeans?????????Model

11
????
  • Model ? Domain Object??DTO??1.
    ????Model????????2. ??????,??????3.
    ??????,DTO?????Model????

12
Model?MDA
13
MVC??
  • MVC???J2EE Web??????

14
Struts??(Framework)
  • Struts???MVC?????(???)
  • ??(Framework)???(Pattern)???1. ??????????2.
    ???????????????3. ????????????

15
????
  • ?????????????????
  • ???????????????????????????????
  • ???????????????(Access Proxy)????????????

16
????
  • ??
  • public interface BaseIF
  • public Object myMethod()
  • ???
  • public class OriginClass implements BaseIF
  • public Object myMethod ()
  • return " hello , It is me! "

17
????(?)
  • ???
  • public class ProxyClass implements BaseIF
  • public Object myMethod ()
  • //???????????OriginClass
  • BaseIF instance getRemoteOrigin ()
  • Return instance.myMethod ()
  • ..
  • ?????
  • BaseIF instance new Proxy Class()
  • String (String)instance.myMethod ()
  • System.out.println(result) //????
    hello , It is me!

18
??????
  • ??????Java???(Reflect)??,?????????????????????????
    ?????????
  • ???????????????????????????????,??????????????????
    ??AOP??????
  • ????????,??????????,??JBoss 3.XX?????

19
JdonSD??
  • JdonSD???????????
  • JdonSD?????AOP?MDA??????
  • ????RBAC????
Write a Comment
User Comments (0)
About PowerShow.com