锘??xml version="1.0" encoding="utf-8" standalone="yes"?>av福利在线播放,久热精品在线视频,性色av一区http://www.aygfsteel.com/yangbutao/zh-cnMon, 19 May 2025 00:40:27 GMTMon, 19 May 2025 00:40:27 GMT60嫻呮瀽鎵╁睍鐐癸紙Extension Point錛?/title><link>http://www.aygfsteel.com/yangbutao/archive/2007/09/27/148500.html</link><dc:creator>闃夸笉</dc:creator><author>闃夸笉</author><pubDate>Thu, 27 Sep 2007 01:09:00 GMT</pubDate><guid>http://www.aygfsteel.com/yangbutao/archive/2007/09/27/148500.html</guid><wfw:comment>http://www.aygfsteel.com/yangbutao/comments/148500.html</wfw:comment><comments>http://www.aygfsteel.com/yangbutao/archive/2007/09/27/148500.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yangbutao/comments/commentRss/148500.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yangbutao/services/trackbacks/148500.html</trackback:ping><description><![CDATA[     鎽樿: 鎵╁睍錛圗xtension錛夋槸寰堝鍙墿灞曢」鐩腑涓涓叧閿殑鏈哄埗錛屽彲浠ュ埄鐢ㄦ墿灞曞悜騫沖彴娣誨姞鏂板姛鑳姐備絾鏄墿灞曚笉鑳介殢鎰忓湴鍒涘緩錛屽繀欏繪寜鐓ф墿灞曠偣錛圗xtension Point錛夊畾涔夌殑瑙勮寖榪涜鏄庣‘鐨勫0鏄庯紝騫沖彴鎵嶈兘璇嗗埆鍑鴻繖浜涙墿灞曘傛墍璋撴墿灞曠偣錛屽氨鏄郴緇熷畾涔夊嚭鏉ュ彲浠ヨ浣犳墿灞曠殑鍦版柟錛屽彲浠ヨ涓烘槸涓浜涙墿灞曠殑濂戠害錛岃屾墿灞曪紝榪欐槸浣犲榪欎簺鎵╁睍鐐圭殑瀹炵幇錛屽綋鐒朵綘鑷繁鐨勬彃浠朵篃鍙互瀹氫箟鎵╁睍鐐逛緵鍒殑寮鍙戜漢鍛樻墿灞曘?nbsp; <a href='http://www.aygfsteel.com/yangbutao/archive/2007/09/27/148500.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/yangbutao/aggbug/148500.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yangbutao/" target="_blank">闃夸笉</a> 2007-09-27 09:09 <a href="http://www.aygfsteel.com/yangbutao/archive/2007/09/27/148500.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>OSGI Module&lifecyclehttp://www.aygfsteel.com/yangbutao/archive/2007/09/24/147771.html闃夸笉闃夸笉Mon, 24 Sep 2007 05:26:00 GMThttp://www.aygfsteel.com/yangbutao/archive/2007/09/24/147771.htmlhttp://www.aygfsteel.com/yangbutao/comments/147771.htmlhttp://www.aygfsteel.com/yangbutao/archive/2007/09/24/147771.html#Feedback0http://www.aygfsteel.com/yangbutao/comments/commentRss/147771.htmlhttp://www.aygfsteel.com/yangbutao/services/trackbacks/147771.html                                                           OSGI Module&lifecycle
 
OSGI姒傚康涓富瑕佸垎涓轟簡Bundle鍜孲ervice錛屽彲浠ヨ涓築undle鏄竴涓ā鍧楃殑綆$悊鍣紝涓昏鏄氳繃BundleActivator綆$悊妯″潡鐨勭敓鍛藉懆鏈燂紝鑰孲ervice鍒欐槸榪欎釜妯″潡鍙毚闇插澶栫殑鏈嶅姟瀵硅薄錛岃繖閲屼綋鐜頒簡OSGI鍜屼紶緇熺殑Plugin Framework涓嶅悓鐨勪竴涓湴鏂癸紝綆$悊鍜岄潤鎬佺粨鏋勫垎寮錛屽湪OSGI涓氳繃鍦╩anifest.mf鏂囦歡涓鍔犱竴浜涘唴瀹規潵鍙戝竷Bundle錛屽湪鍏朵腑鎻忚堪浜咮undle鐨勬彁渚涘晢銆佺増鏈佸敮涓ID銆乧lasspath銆佹毚闇插澶栫殑鍖呫佹墍渚濊禆鐨勫寘錛涙瘡涓狟undle鎷ユ湁鑷繁鐨凜lassLoader浠ュ強context錛岄氳繃context鍙繘琛屾湇鍔$殑娉ㄥ唽銆佸嵏杞界瓑錛岃繖浜涙搷浣滈兘浼氶氳繃浜嬩歡鏈哄埗騫挎挱緇欑浉搴旂殑鍏朵粬鐨凚undle錛涗竴鑸潵璇撮兘涓洪氳繃鍦˙undle涓紪鍐欏垵濮嬮渶瑕佹敞鍐岀殑鏈嶅姟鐨勬柟娉曟潵瀹屾垚Bundle鍙緵澶栭儴浣跨敤鐨勬湇鍔$殑鏆撮湶鍔熻兘錛涘闇瑕佽皟鐢ㄥ叾浠朠lugin鎻愪緵鐨勬湇鍔″彲閫氳繃context鐨刧etServiceReference鍏堣幏鍙朣ervice鐨勫彞鏌勶紝鍐嶉氳繃context.getService(ServiceReference)鐨勬柟娉曡幏鍙朣ervice鐨勫疄浣撱?/div>
鍓嶄竴孌墊椂闂村osgi鐨剆ervice灞傚仛浜嗕粙緇嶏紝涓嬮潰浠嬬粛module鍜宭ifecycle灞傦紝鍦ㄨ繖閲屼富瑕佷粙緇峫ifecycle
緋葷粺妗嗘灦瀵筨undle鐨勭敓鍛藉懆鏈熻繘琛屼簡綆$悊銆?/div>
osgi鐢熷懡鍛ㄦ湡鐨勭鐞嗭紝瑕嗙洊鍒癰undle鐨勫畨瑁咃紝鍚姩錛屽仠姝紝鏇存柊錛屽嵏杞斤紝鍜岀洃鎺ц繖涔堜竴涓繃紼嬨?/div>
Bundle鐨勭敓鍛藉懆鏈?/span>
涓嬮潰鏄痓undle鐨刲ifecycle鐨勭被鍥?/div>
涓嬮潰璇︾粏浠嬬粛bundle鐨勫嚑涓璞?/div>
 
l         Bunlde 鏍囪瘑
 Identifier
 Location
 symbolicName
l         bundle鐨勭姸鎬?/div>
  鐘舵佽漿鎹㈠浘
ü         bundle鐨勫畨瑁呬竴鑸湁涓ょ鏂瑰紡錛?/div>
閫氳繃鍙﹀涓涓猙undle鐨刡undlecontext鏉ュ畬鎴?/div>
閫氳繃鍛戒護琛岀殑褰㈠紡錛堟瘮濡傜郴緇焍undle涓鑸槸榪欐牱鐨勶級鏉ュ畬鎴愮殑
ü         Bundle鐨勮В鏋愶紙涓鑸槸鍦ㄥ惎鍔ㄨ繃紼嬩腑瀹屾垚鐨勶級
鏍規嵁bundle鐨勫畾涔夛紝鍒涘緩鍩轟簬鐗堟湰鐨刴odule錛?span style="font-size: 10pt; color: black">ModuleDefinition錛?/span>ContentLoader錛?/span>Wire錛?/div>
ü         Bundle鐨勫惎鍔紝鐢辮bundle鐨勮皟鐢╯tart api鏉ュ畬鎴愮殑
      榪欓噷鍖呭惈鍒涘緩璇undle鐨勪笂涓嬫枃錛圔undleContext錛?/div>
      鍒涘緩璇undle鐨刟ctivator錛屽彲浠ュ湪activator閲岃繘琛屼笌璇undle鐩稿叧鐨剆ervice鐨勬敞鍐岋紝bundlelistener錛宻ervicelistener ,frameworklistener鐨勬敞鍐屼互鍙婂畨瑁呭叾浠栫殑bundle.絳?
      鏄惁瑕佺珛鍗寵Е鍙戣activator錛岄渶瑕佹牴鎹bundle鐨刟ctivator policy鏉ュ喅瀹氾紱鍦ㄧ敤bundle鑾峰彇resource鐨勬椂鍊欙紝閲囧彇瑙f瀽bundle錛屾墠鍒涘緩璇undle鐨刢lassloader鍜宎ctivate璇undle銆傝繖鏍瘋兘鑺傜渷鍚姩鐨勬椂闂達紝瀹炵幇浜嗘噿鍔犺澆銆?/div>
涓嬪浘鎻忚堪浜哹undle鐨勫惎鍔ㄨ繃紼嬩腑鐨勭姸鎬佸彉鍖?/div>
ü         Bundle鐨勬洿鏂?/div>
Bundle鐨勬洿鏂幫紝鏄粠涓涓増鏈埌鍙︿竴涓増鏈殑榪佺Щ榪囩▼
嫻佺▼濡備笅錛?/div>
1錛?span style="font: 7pt 'Times New Roman'">  媯鏌undle鐨勭姸鎬?/div>
濡傛灉鏄痷ninsalled錛屾姏鍑哄紓甯?/div>
2錛?span style="font: 7pt 'Times New Roman'">  錛屼絾鏄笉鏀瑰彉鎸佷箙鍖栫殑鐘舵?/span>Stop bundle
3錛?span style="font: 7pt 'Times New Roman'">  鐗堟湰鐨勪慨璁?/div>
4錛?span style="font: 7pt 'Times New Roman'">  鏇存敼bundle鐨勬椂闂存埑錛岀姸鎬佽緗垚installed
5錛?span style="font: 7pt 'Times New Roman'">  鍙戦乽nresolved浜嬩歡緇檅undle
6錛?span style="font: 7pt 'Times New Roman'">  鎶婅bundle鐨勮佺殑module鍋氫竴涓猺emoval鏍囪錛岃〃紺轟笉鍙敤
7錛?span style="font: 7pt 'Times New Roman'">  鍙戦乽pdated浜嬩歡緇檅undle
8錛?span style="font: 7pt 'Times New Roman'">  鍚姩錛坰tart錛塨undle
   
ü         Bundle鐨勫仠姝?/div>
1錛?span style="font: 7pt 'Times New Roman'">  鎶奲undle鐨勬寔涔呭寲鐘舵佽緗垚inactive
2錛?span style="font: 7pt 'Times New Roman'">  媯鏌undle鐨勭姸鎬?/div>
濡傛灉鐘舵佹槸Installed錛孯esolved錛屽氨榪斿洖
濡傛灉鏄痷ninstalled錛屾姏鍑哄紓甯?/div>
濡傛灉鏄痵tarting錛宻topping錛屾姏寮傚父
濡傛灉ACTIVE錛屾妸bundle鐨勭姸鎬佽緗垚stopping錛屽彂stopping浜嬩歡璺熷搷搴旂殑bundle
3錛?span style="font: 7pt 'Times New Roman'">  璋冪敤璇undle鐨刟ctivator鐨剆top鎿嶄綔錛屾竻鐞嗗垎閰嶇殑璧勬簮
4錛?span style="font: 7pt 'Times New Roman'">  娓呴櫎bundle鐨勪笂涓嬫枃
娓呯悊璇?/span>bundle娉ㄥ唽鐨?/span>service
閲婃斁璇?/span>bundle鐢ㄥ埌鐨?/span>service
鍒犻櫎璇?/span>bundle娉ㄥ唽鐨?/span>listener  
5錛?span style="font: 7pt 'Times New Roman'">  璇undle鐨勭姸鎬佽繑鍥炲埌resolved鐘舵?/div>
6錛?span style="font: 7pt 'Times New Roman'">  鍙憇topped浜嬩歡緇欒bundle
 
ü         Bundle鐨勫嵏杞?/div>
1錛?span style="font: 7pt 'Times New Roman'">  Stop bundle
2錛?span style="font: 7pt 'Times New Roman'">  鎶婅bundle浠庣紦瀛樹腑鍒犻櫎
3錛?span style="font: 7pt 'Times New Roman'">  鎶婅bundle鏀懼叆uninstall 綾誨埆涓?/div>
4錛?span style="font: 7pt 'Times New Roman'">  璇undle鐘舵佽緗垚uninstalled
5錛?span style="font: 7pt 'Times New Roman'">  瑙﹀彂bundle鐨剈ninstall浜嬩歡
6錛?span style="font: 7pt 'Times New Roman'">  鐪嬫槸鍚︽湁浠ユ潵璇undle鐨刴odule錛屽鏋滄病鏈夊垯鍨冨溇鍥炴敹
Listener鍜屼簨浠舵満鍒?span>            
鍏充簬榪欎竴閮ㄥ垎鍔熻兘鍜岀敤娉曞凡鍦ㄤ笂涓綃噑ervice灞傞噷宸茬粡鍋氫簡浠嬬粛錛岃繖閲屽彧鍋氫竴涓嬬畝鍗曠殑緗楀垪
ü         Framework
FrameworkListener錛?/div>
娉ㄥ唽鏃墮棿錛?/div>
瑙﹀彂鏃墮棿錛?/div>
浣滅敤錛歄SGI environment
 FrameworkEvent: type錛宐undle錛宼hrowable
ü         Bundle
BundleListener
娉ㄥ唽鏃墮棿錛?/div>
瑙﹀彂鏃墮棿錛?/div>
浣滅敤錛?span style="font-size: 10pt; color: black">a bundle lifecycle change.
BundleEvent: Bundle,type
ü         Service
ServiceListener
娉ㄥ唽鏃墮棿錛?/div>
瑙﹀彂鏃墮棿錛?/div>
浣滅敤錛歛 service lifecycle change.
ServiceEvent:serviceReference ,type
 
璧勬簮
浜嬩歡綾誨瀷
瑙﹀彂鏃舵満
Framework
STARTED
Framework鍚姩瀹屾垚
Framework has started after all installed bundles that are marked to be started have been started and the Framework has reached the intitial start level.
ERROR
There was an error associated with a bundle.
PACKAGES_REFRESHED
Framework has completed the refresh  packages operation initiated by a call to the
PackageAdmin.refreshPackages method.
STARTLEVEL_CHANGED
the Framework has completed changing the active start level initiated by a call to the StartLevel.setStartLevel
method.
WARNING
There was a warning associated with a bundle.
INFO
There was an informational event associated with a bundle.
Bundle
INSTALLED
The bundle has been installed.
STARTED
The bundle has been started.
STOPPED
The bundle has been stopped.
UNINSTALLED
The bundle has been uninstalled.
RESOLVED
The bundle has been resolved.
UNRESOLVED
The bundle has been unresolved.
STARTING
The bundle is about to start.
STOPPING
The bundle is about to stop.
Service
REGISTERED
This service has been registered.
MODIFIED
The properties of a registered service have been modified.
UNREGISTERING
 This service is in the process of being unregistered.
 
If a bundle is using a service that is <code>UNREGISTERING</code>, the
     bundle should release its use of the service when it receives this event.
     If the bundle does not release its use of the service when it receives
     this event, the Framework will automatically release the bundle's use of
     the service while completing the service unregistration operation.
 
 
 
 
  
璧勬簮鐨勬煡鎵?/font>
鍑犵偣璇存槑
緋葷粺鍚姩鏃跺欙紝浼氭妸鎵鏈夎亴璐g殑鍏寵仈鍏崇郴wire璧鋒潵
騫朵笖鍒涘緩鏍稿績鐨勬煡鎵捐祫婧恜olicy
榪樻湁灝辨槸鏈夌殑module鍙互鏀懼湪resolve闃舵鍙互鏀懼埌鏌ユ壘璧勬簮鐨勬椂鍊欒繘琛岋紝瀹炵幇鎳掑姞杞界殑鍔熻兘
 
1.鏌ユ壘璧勬簮鐨勬牳蹇冪被錛屽垎鍙戜腑蹇冿紝鎵鏈夌殑璋冨害閫昏緫閮藉湪榪欓噷
2.鎵鏈夌殑璧勬簮鏌ユ壘閮戒唬鐞嗗埌璇ユ牳蹇冪被錛屾湁鐐硅薄浠g悊鐨勬柟寮?/div>
3.module鐨勪慨鏀癸紝榪欓噷浼氬疄鏃剁殑寰楀埌鏇存柊錛堥氳繃娉ㄥ唽listener錛?/div>
璧勬簮鐨勬煡鎵撅細鍦ㄦ湰bundle鐨刢lassloader鑼冨洿鍐咃紝榪涜class鐨勬煡鎵撅紝璧勬簮鍔犺澆鐨勯『搴忓彲浠ュ弬瑙佽鑼?/div>
涓嬮潰鏄被鏌ユ壘鐨勭被鍥?/div>
 
璇undle鐨凜lassloader鍦╞undle鐨剅esolve闃舵灝卞垱寤哄ソ浜?/div>
鍏充簬bundle鐨勮鏄庡畾涔変腑鐨刬mport export璇﹁瑙勮寖
緋葷粺Bundle鐨勫惎鍔ㄨ繃紼?/font>
1錛庣郴緇焍undle鐢辨鏋跺惎鍔紝騫朵笖鍙惎鍔ㄤ竴嬈?/div>
2錛?鍒涘緩鏈嶅姟鐨勬敞鍐屼腑蹇冿紝璇ヤ腑蹇冧綔涓哄悇縐嶄簨浠剁殑鍒嗗彂鍦烘墍銆?/div>
3錛?鍒涘緩鏍稿績鐨勬煡鎵捐祫婧愮殑policy錛屽姞鍏esolver listener鍒拌policy錛屽彲浠ュ湪module瑙f瀽鍚庯紝寰楀埌閫氱煡鏇存柊bundle鐨勭姸鎬?/div>
4錛?鍒濆鍖栦簨浠跺垎鍙戝櫒
5. 鍦ㄥ姞杞藉叾浠栫殑bundle涔嬪墠錛屽垱寤虹郴緇熺殑bundle璐熻矗瀹瑰櫒鐩稿叧鐨剆ervice錛宺esolve緋葷粺bundle錛屽垱寤虹郴緇焍undle鐨刟ctivator錛屽垱寤篵undle鐨勪笂涓嬫枃錛屽茍瑙﹀彂activator
6. 瀹夎鍏朵粬鐨刡undle
7 瑙﹀彂緋葷粺bundle鐨剆tarted浜嬩歡錛屾爣蹇楃郴緇焍undle鍚姩瀹屾垚
8. 瑙﹀彂妗嗘灦鐨剆tarted鏃墮棿錛屾爣蹇楁鏋跺惎鍔ㄥ畬鎴?/div>

闃夸笉 2007-09-24 13:26 鍙戣〃璇勮
]]>OSGI 鏈嶅姟灞傛帰絀?/title><link>http://www.aygfsteel.com/yangbutao/archive/2007/08/14/136620.html</link><dc:creator>闃夸笉</dc:creator><author>闃夸笉</author><pubDate>Tue, 14 Aug 2007 03:51:00 GMT</pubDate><guid>http://www.aygfsteel.com/yangbutao/archive/2007/08/14/136620.html</guid><wfw:comment>http://www.aygfsteel.com/yangbutao/comments/136620.html</wfw:comment><comments>http://www.aygfsteel.com/yangbutao/archive/2007/08/14/136620.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yangbutao/comments/commentRss/136620.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yangbutao/services/trackbacks/136620.html</trackback:ping><description><![CDATA[     鎽樿: OSGI鐨勬鏋跺緢濂界殑瑙e喅浜嗘ā鍧楀姩鎬佺殑鏇存柊錛岄儴緗詫紝浠ュ強瑙e喅浠栦滑涔嬮棿鐨勪緷璧栧叧緋?<br>鐨勯棶棰橈紝鏇村鎼緩鍔ㄦ佸寲鐨勭郴緇熷彲浠ヨ鏄疧SGI鍦⊿CA鐨勯儴緗茬瓥鐣ヤ笂鐨勪竴縐嶅緢濂界殑鍙傝冨疄鐜般?<br>  <a href='http://www.aygfsteel.com/yangbutao/archive/2007/08/14/136620.html'>闃呰鍏ㄦ枃</a><img src ="http://www.aygfsteel.com/yangbutao/aggbug/136620.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yangbutao/" target="_blank">闃夸笉</a> 2007-08-14 11:51 <a href="http://www.aygfsteel.com/yangbutao/archive/2007/08/14/136620.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">盐边县</a>| <a href="http://" target="_blank">乐亭县</a>| <a href="http://" target="_blank">容城县</a>| <a href="http://" target="_blank">松江区</a>| <a href="http://" target="_blank">承德市</a>| <a href="http://" target="_blank">布拖县</a>| <a href="http://" target="_blank">定南县</a>| <a href="http://" target="_blank">怀安县</a>| <a href="http://" target="_blank">图片</a>| <a href="http://" target="_blank">洮南市</a>| <a href="http://" target="_blank">康乐县</a>| <a href="http://" target="_blank">鲜城</a>| <a href="http://" target="_blank">门源</a>| <a href="http://" target="_blank">华阴市</a>| <a href="http://" target="_blank">大连市</a>| <a href="http://" target="_blank">中超</a>| <a href="http://" target="_blank">青龙</a>| <a href="http://" target="_blank">崇信县</a>| <a href="http://" target="_blank">施甸县</a>| <a href="http://" target="_blank">博兴县</a>| <a href="http://" target="_blank">萝北县</a>| <a href="http://" target="_blank">嘉峪关市</a>| <a href="http://" target="_blank">龙州县</a>| <a href="http://" target="_blank">新建县</a>| <a href="http://" target="_blank">乡宁县</a>| <a href="http://" target="_blank">兴文县</a>| <a href="http://" target="_blank">泗洪县</a>| <a href="http://" target="_blank">北流市</a>| <a href="http://" target="_blank">正蓝旗</a>| <a href="http://" target="_blank">巫溪县</a>| <a href="http://" target="_blank">沙田区</a>| <a href="http://" target="_blank">开鲁县</a>| <a href="http://" target="_blank">随州市</a>| <a href="http://" target="_blank">安多县</a>| <a href="http://" target="_blank">英吉沙县</a>| <a href="http://" target="_blank">大埔县</a>| <a href="http://" target="_blank">岳阳市</a>| <a href="http://" target="_blank">平邑县</a>| <a href="http://" target="_blank">盐山县</a>| <a href="http://" target="_blank">靖远县</a>| <a href="http://" target="_blank">察雅县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>