靜態剖析器的架構設計已從 1.3 變更成 3.x,且 org.eclipse.hyades.logging.events.* 類別已移轉成 org.eclipse.hyades.logging.events.cbe.* Common Base Event 類別。
請遵循下列步驟來移轉靜態剖析器:
您需要更新在 Common Base Events 的靜態剖析器 Java 類別中所使用的類別。 org.eclipse.hyades.logging.events.* 的所有實例需要移轉至 org.eclipse.hyades.logging.events.cbe.*。 比方說,如果您有一組 import 陳述式:
import org.eclipse.hyades.logging.events.ICommonBaseEvent;在 3.x.x 中,您需要將這些陳述式更新成:
import org.eclipse.hyades.logging.events.IComponentIdentification;
import org.eclipse.hyades.logging.events.IReportSituation;
import org.eclipse.hyades.logging.events.ISituation;
import org.eclipse.hyades.logging.events.cbe.CommonBaseEvent;如需 org.eclipse.hyades.logging.events.cbe.* 類別的詳細資料,請參閱 Common Base Event Programming API。
import org.eclipse.hyades.logging.events.cbe.ComponentIdentification;
import org.eclipse.hyades.logging.events.cbe.ReportSituation;
import org.eclipse.hyades.logging.events.cbe.Situation;
現在,「配接器配置編輯器」會驗證配接器中的其他欄位。例如, 實作建立日期和角色建立日期欄位的值 必須符合 XML 日期時間格式 yyyy-MM-ddThh:mm:ss。 在執行配接器之前,請先確認顯示於「視圖」中的所有配接器錯誤資訊都是正確的。
3.x.x 版配置 | 1.3.0 版配置 | |
---|---|---|
Java 建置路徑外掛程式 |
org.eclipse.hyades.logging.adapter.config\hglaconfig.jar org.eclipse.hyades.logging.core\hlcore.jar org.eclipse.hyades.logging.core\hlcbe101.jar org.eclipse.hyades.logging.parsers\hparse.jar org.eclipse.hyades.logging.adapter\hgla.jar org.eclipse.emf.ecore\runtime\ecore.jar org.eclipse.emf.common\runtime\common.jar org.eclipse.hyades.logging.commons\hlcommons.jar org.apache.jakarta_commons_logging\commons-logging.jar |
org.eclipse.hyades.logging.adapter\hglaconfig.jar org.eclipse.hyades.logging.core\hlcore.jar org.eclipse.hyades.logging.core\hlevents.jar org.eclipse.hyades.logging.parsers\hparser.jar org.apache.xerces\xmlParserAPIs.jar org.eclipse.hyades.logging.commons\common-loggings.jar |
Common Base Event API | org.eclipse.hyades.logging.events.cbe.* | org.eclipse.hyades.logging.events.* |
配接器配置檔變更 |
經過編輯器驗證的其他欄位:
|
N/A |
相關作業
建立日誌剖析器
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.