この規則により、非推奨の com.ibm.websphere.product.WASProduct クラスの使用にフラグを立てます。このクラスはバージョン 7.0 で非推奨となりました。
代わりに、com.ibm.websphere.product.WASDirectory から以下のサポートされるメソッドを使用します。
- public WASProductInfo getWASProductInfo(String id)
- public boolean isThisProductInstalled(String id)
- public WASProductInfo[] getWASProductInfoInstances()
- public String getWasLocation()
さらに、古い WASProduct API (com.ibm.websphere.product.WASProduct) から製品情報 (名称、バージョン、ビルド・レベル、ビルド日) を取得する代わりに、これからは以下の WASDirectory クラスのメソッドを使用してその情報を取得する必要があります。
- com.ibm.websphere.product.WASDirectory.getName(String)
- com.ibm.websphere.product.WASDirectory.getVersion(String)
- com.ibm.websphere.product.WASDirectory.getBuildLevel(String)
- com.ibm.websphere.product.WASDirectory.getBuildDate(String)
詳しくは、以下を参照してください。