summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Negrea <snegrea@redhat.com>2012-08-17 14:09:04 (GMT)
committerStefan Negrea <snegrea@redhat.com>2012-08-17 14:09:32 (GMT)
commit32ad4e17b0f75fcccb84107e01956a519175670f (patch)
tree4ea8e7c5f39439c9f84fe4aacbc40243c65dfc33
parentf0f52f180b65682996586b4a0438a1865cae8381 (diff)
downloadrhq-32ad4e17b0f75fcccb84107e01956a519175670f.zip
rhq-32ad4e17b0f75fcccb84107e01956a519175670f.tar.gz
rhq-32ad4e17b0f75fcccb84107e01956a519175670f.tar.xz
[BZ 848800] Adding back old constructor signature for backwards compatibility reasons. Marked the old constructor as deprecated.
-rw-r--r--modules/plugins/jboss-as-5/src/main/java/org/rhq/plugins/jbossas5/helper/CreateChildResourceFacetDelegate.java13
1 files changed, 13 insertions, 0 deletions
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();