[rhq] modules/plugins

snegrea snegrea at fedoraproject.org
Fri Aug 17 14:09:39 UTC 2012


 modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/CreateChildResourceFacetDelegate.java |   13 ++++++++++
 1 file changed, 13 insertions(+)

New commits:
commit 32ad4e17b0f75fcccb84107e01956a519175670f
Author: Stefan Negrea <snegrea at redhat.com>
Date:   Fri Aug 17 09:09:04 2012 -0500

    [BZ 848800] Adding back old constructor signature for backwards compatibility reasons. Marked the old constructor as deprecated.

diff --git a/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/CreateChildResourceFacetDelegate.java b/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/CreateChildResourceFacetDelegate.java
index af18723..c5e85bb 100644
--- a/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/CreateChildResourceFacetDelegate.java
+++ b/modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/CreateChildResourceFacetDelegate.java
@@ -59,6 +59,19 @@ public class CreateChildResourceFacetDelegate implements CreateChildResourceFace
         this.parentResourceContext = parentResourceContext;
     }
 
+    /**
+     * @deprecated This constructor is deprecated because it does not handle properly the SHA256 computation for
+     * exploded content. If used, this constructor will lead to a calculation of the SHA256 for exploded content
+     * based on exploded files. This method of computation is not preferred due to changes in content archive
+     * matching. Replaced by (@link {@link #CreateChildResourceFacetDelegate(ProfileServiceComponent, ResourceContext)}
+     *
+     * @param component component
+     */
+    @Deprecated
+    public CreateChildResourceFacetDelegate(ProfileServiceComponent component) {
+        this.component = component;
+    }
+
     public CreateResourceReport createResource(CreateResourceReport createResourceReport) {
         // ProfileServiceFactory.refreshCurrentProfileView();
         ResourceType resourceType = createResourceReport.getResourceType();




More information about the rhq-commits mailing list