Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaÉè¼Æģʽ Mediator

      Mediator ģʽµÄÄ¿µÄÊǶ¨ÒåÒ»¸ö¶ÔÏó,·â×°Ò»×é¶ÔÏó¼äµÄ½»»¥,ÕâÑù¾Í½µµÍÁ˽»»¥¶ÔÏó¼äµÄñîºÏ,ʹ¶ÔÏóºÍËûÃDzο¼µÄ¶ÔÏóÏÔʾµØ·ÖÀë,¾Í¿ÉÒÔ¶ÀÁ¢µØ±ä»¯ËûÃÇÖ®¼äµÄ¹Øϵ.
     
      Ìõ¼þ:¶ÔÏó¼äµÄ½»»¥ºÍ¶ÔÏóµÄÆäËûÐÐΪ±È½Ï¶ÀÁ¢.
      MediatorģʽºÍSingletonģʽһÑù¶¼±³ÀëÁËÃæÏò¶ÔÏóµÄ·ÖÉ¢ÔðÈεÄÀíÄî,¶øÊǼ¯ÖÐÔðÈÎ,Ö»²»¹ýÇ°ÕßÊÇÕë¶ÔÌØÊâ¶ÔÏó,ºóÕßÊÇÕë¶ÔËùÓпͻ§¶Ë.
      Ó¦ÓÃ:
            1,µäÐ͵ÄÓ¦ÓÃÊÇ,GUI Mediators
            2,¹ØϵһÖÂÐÔMediators (relational integrity)
     ¶Ô±È: ¶¼ÊÇ´ÓÒ»¸öÀàÒƳöÒ»²¿·Öµ½Ò»¸öÐÂÀàµÄģʽÓÐÈçϼ¸¸öÉè¼Æģʽ
             Facade ¿ÉÒÔ°ïÖúÖع¹´ó²¿·ÖÓ¦ÓÃ
             Bridge  Òƶ¯³éÏó²Ù×÷µ½Ò»¸ö½Ó¿Ú
             Observer Öع¹´úÂë Ö§³ÖMVC¼Ü¹¹
             Flyweight °Ñ¶ÔÏóÖй̶¨²»±äµÄ²¿·ÖÌá³ö,¿ÉÒÔ¹²Ïí
             Builder °Ñ¶ÔÏóµÄ¹¹Ôì·½·¨Âß¼­ÒƳöÀ´³ÉΪʵÀý
             Factory Method ¼õÉÙÒ»¸öÀàµÄÔðÈÎ,ÒƳöÀàÐÐΪµÄÒ»¸ö·½Ãæµ½ÁíÍâÒ»¸öÀà,ËûÃÇÊÇƽÐеIJ㼶
             State ,Strategy ÒƳöÌØÊâµÄ״̬,ÌØÊâµÄ²ßÂÔ ÐÐΪ µ½ÆäËûÀà            
  


Ïà¹ØÎĵµ£º

ubuntuÏ£¬C/C++ͨ¹ýJNIµ÷Óà JAVAÀà

֮ǰд¹ýÒ»¸öʵÏÖÁËijÖÖ¹¦ÄܵÄjava³ÌÐò£¬µ«ÓÉÓÚ½üÈÕ“¹¤×÷”ÐèÒª£¬ÓÖÐèÒªÔÚc/c++ÖÐÖØÐÂʹÓøù¦ÄÜ¡£ÎªÁ˽Úʡʱ¼ä£¬ÎÒ²ÉÈ¡ÁËÔÚc/c++Öе÷ÓÃjava³ÌÐòµÄ·½·¨£¬µ«Ö®Ç°Ã»ÓнӴ¥¹ýÀàËƵĶ«Î÷£¬µ½ÍøÉÏÒ»²é£¬¹ûÈ»ÓÐÀàËƵĶ«Î÷£¬ÐÄÖаµÏ²ing...¡£²éµ½µÄ×ÊÁÏÖÐÓм¸¸ö²»´íµÄÍøÒ³£º
      &nbs ......

¹ØÓÚJavaŵÂüµ×µÄÒ»µãСÀúÊ·

   ¹ØÓÚJavaŵÂüµ×µÄÒ»µãСÀúÊ·
 ×î½üºÜ¶àÈËÎÊJavaŵÂüµ×ÊÇʲôÒâ˼£¬×÷ΪJavaŵÂüµ×µÄÒ»ÃûÀÏͬ־£¬ÎÒ¼òµ¥µÄ½éÉÜÏÂJavaŵÂüµ×¡£
 JavaŵÂüµ×³ÉÁ¢ÓÚ2008Äê7ÔÂ29ÈÕ£¬ÔÚÒ»¸öÈȺ¹³¯ÌìµÄÈÕ×ÓÀ¼¸¸öÂú»³Ï£ÍûµÄÓÐÖ¾ÇàÄ꣬×øÔÚÏæ½­ºÓ°ø£¬Ì¸×Å×Ô¼ºÀíÏ룬ÆäÖÐÒ»ÈË˵£¬¼ÙÈçÎÒÃÇÓÐ×Ô¼ºµÄÍŶӸÃÓжàºÃ£¬ÓÚÊ ......

Java³£¼ûµÄÎÊÌâ

1.Duplicated Code ´úÂëÖظ´¼¸ºõÊÇ×î³£¼ûµÄÒìζÁË¡£ËûÒ²ÊÇRefactoringµÄÖ÷ҪĿ±êÖ®Ò»¡£´úÂëÖظ´ÍùÍùÀ´×ÔÓÚcopy-and-pasteµÄ±à³Ì·ç¸ñ¡£ÓëËûÏà¶ÔÓ¦OAOOÊÇÒ»¸öºÃϵͳµÄÖØÒª±êÖ¾¡£ 2.Long method ËüÊÇ´«Í³½á¹¹»¯µÄ“ÒŶ¾”¡£Ò»¸ö·½·¨Ó¦µ±¾ßÓÐ×ÔÎÒ¶ÀÁ¢µÄÒâͼ£¬²»Òª°Ñ¼¸¸öÒâͼ·ÅÔÚÒ»Æð¡£ 3.Large Class ´óÀà¾ÍÊÇÄã°ÑÌ«¶ ......

javaÓëc#ͨÐÅÊý¾Ýת»»ÎÊÌâ

/ÓÉÓÚJAVAÓïÑÔµÄÊý¾ÝÀàÐͶ¼ÊÇÓзûºÅÀàÐÍ£¬¶øC# C++Ò»°ãÊý¾ÝÀàÐͶ¼ÊÇ·ÖÓзûºÅºÍÎÞ·ûºÅ,
//Òò´ËÔÚͨÐŹý³ÌÖд«µÝµÄByte[]ÎÞ·¨Ö±
½Óת»»³ÉC#ÐèÒªµÄÀàÐÍ£¬
//ÒÔÇ°µ¹ÊÇûעÒâÕâЩϸ½Ú£¬ÒòΪһ°ãÓÃÒ»ÖÖÓïÑÔ±à³Ì£¬
//´ó¶¼ÓÐÄÚÖõÄת»»·½·¨¡£¿çÓïÑÔ»·¾³µÄת»»¾ÍµÄ×Ô¼º¶¯
ÊÖÏë°ì·¨ÁË¡£
1¡¢javaµÄByte[]ת»»³Éc#µÄInt32
privat ......

java¿ì½Ý¼ü

Ctrl+1 ¿ìËÙÐÞ¸´(×î¾­µäµÄ¿ì½Ý¼ü,¾Í²»Óöà˵ÁË)
Ctrl+D: ɾ³ýµ±Ç°ÐÐ
Ctrl+Alt+↓ ¸´ÖƵ±Ç°Ðе½ÏÂÒ»ÐÐ(¸´ÖÆÔö¼Ó)
Ctrl+Alt+↑ ¸´ÖƵ±Ç°Ðе½ÉÏÒ»ÐÐ(¸´ÖÆÔö¼Ó)
Alt+↓ µ±Ç°ÐкÍÏÂÃæÒ»Ðн»»¥Î»ÖÃ(ÌرðʵÓÃ,¿ÉÒÔÊ¡È¥ÏȼôÇÐ,ÔÙÕ³ÌùÁË)
Alt+↑ µ±Ç°ÐкÍÉÏÃæÒ»Ðн»»¥Î»ÖÃ(ͬÉÏ)
Alt+← Ç°Ò»¸ö±à¼­µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ