This rule flags the use of deprecated methods from the
com.ibm.websphere.product.WASDirectory
class
and fields from the
WASDirectory
and
WASDirectoryHelper
classes.
With the introduction of the installation manager some of the function
is no longer provided and some of the function has replacement APIs.
The following methods were deprecated:
- public WASComponent getInstalledComponentByName(String componentName)
- public WASComponent[] getInstalledComponentList()
- public boolean isComponentInstalled(String componentName)
- public WASMaintenancePackage[] getHistoryMaintenancePackageList()
- public WASMaintenancePackage getInstalledMaintenancePackageByID(String mpID)
- public WASMaintenancePackage[] getInstalledMaintenancePackageList()
- public boolean isMaintenancePackageInstalled(String ID)
See the guidelines for migration:
- public WASComponent getInstalledComponentByName(String componentName)
This method now returns a null object. Remove use of this method.
- public WASComponent[] getInstalledComponentList()
This method now returns an empty list. Remove use of this method.
- public boolean isComponentInstalled(String componentName)
This method now returns as false. Remove use of this method.
- public WASMaintenancePackage[] getHistoryMaintenancePackageList()
This method is replaced by public IMEvent[] getHistoryEventList().
- public WASMaintenancePackage getInstalledMaintenancePackageByID(String mpID)
This method is replaced by public IMOffering getInstalledOfferingByID(String productID).
- public WASMaintenancePackage[] getInstalledMaintenancePackageList()
This method is replaced by public IMOffering[] getInstalledOfferingList().
- public boolean isMaintenancePackageInstalled(String ID)
This method is replaced by public boolean isThisProductInstalled(String id).
This rule also flags the deprecated
WASDirectory
fields:
The following fields in the
com.ibm.websphere.product.WASDirectory
and
com.ibm.websphere.product.utils.WASDirectoryHelper
classes
are also flagged:
- ID_PME
- ID_WBI
- ID_JDK
- ID_EMBEDDED_EXPRESS
- ID_XD
- ID_CLIENT
- ID_PLUGIN
- ID_IHS
- ID_WXD
- ID_NDDMZ
- ID_UPDI
WASDirectory interfaces are independent of product IDs.
Any product-specific callers should specify product IDs without using these deprecated fields.
For more information, see: