Eli Mesika has posted comments on this change. Change subject: core: Introduce FencingPolicy ......................................................................
Patch Set 5: (1 comment) http://gerrit.ovirt.org/#/c/30194/5/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/FencingPolicyHelper.java File backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/utils/FencingPolicyHelper.java: I think that since this piece of code will be duplicated in future in order to support other flags that require a minimal version, it worth to write this class in a more general manner either by 1) Using reflection 2) Defining a super class with a boolean getValue() method while the constructor gets the object (FencingPolicy in this case) and the descendant class implementation casts the given object and override getValue method Line 1: package org.ovirt.engine.core.common.utils; Line 2: Line 3: import java.util.Set; Line 4: -- To view, visit http://gerrit.ovirt.org/30194 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I7dfcd571b8329174f8d3acccf7136d0b5f83cacc Gerrit-PatchSet: 5 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Martin Peřina <[email protected]> Gerrit-Reviewer: Eli Mesika <[email protected]> Gerrit-Reviewer: Martin Peřina <[email protected]> Gerrit-Reviewer: Oved Ourfali <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
