modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/JBossProductType.java | 15 ++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)
New commits: commit 01d875b284d842df2ac4f099598b5f2a5f320bf2 Author: Heiko W. Rupp hwr@redhat.com Date: Fri May 10 16:34:51 2013 +0200
Provide the old method signature as fallback in case other plugins that inherit from this one, still need it.
diff --git a/modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/JBossProductType.java b/modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/JBossProductType.java index 9eb63f9..48fbf1f 100644 --- a/modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/JBossProductType.java +++ b/modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/JBossProductType.java @@ -53,12 +53,23 @@ public enum JBossProductType { }
/** + * Determine the product type of a JBoss install. This implies an api version of 1.x which + * is a JBossAS 7.x + * @param homeDir the JBoss product installation directory (e.g. /opt/jboss-as-7.1.1.Final) + * @return the product type + * @deprecated "Use the version with the apiVersion" + */ + @Deprecated + public static JBossProductType determineJBossProductType(File homeDir) { + return determineJBossProductType(homeDir,"1.0"); + } + + /** * Determines the product type of a JBoss product installation. * - * * @param homeDir the JBoss product installation directory (e.g. /opt/jboss-as-7.1.1.Final) * - * @param apiVersion + * @param apiVersion Api version of the domain api. * @return the product type */ public static JBossProductType determineJBossProductType(File homeDir, String apiVersion) {
rhq-commits@lists.fedorahosted.org