BUG-2453 Enable nested enums in configuration
[controller.git] / opendaylight / netconf / config-netconf-connector / src / main / java / org / opendaylight / controller / netconf / confignetconfconnector / mapping / attributes / resolving / AbstractAttributeResolvingStrategy.java
index 2808d5dfff20a87738b07d0d29730497bc3b5ac7..5763ed8caf4349496556b34e90f2f4f201de7fd3 100644 (file)
@@ -11,7 +11,7 @@ package org.opendaylight.controller.netconf.confignetconfconnector.mapping.attri
 import javax.management.openmbean.OpenType;
 
 abstract class AbstractAttributeResolvingStrategy<T, O extends OpenType<?>> implements AttributeResolvingStrategy<T, O> {
-    private final O openType;
+    private O openType;
 
     public AbstractAttributeResolvingStrategy(O openType) {
         this.openType = openType;
@@ -21,4 +21,11 @@ abstract class AbstractAttributeResolvingStrategy<T, O extends OpenType<?>> impl
     public O getOpenType() {
         return openType;
     }
+
+    /**
+     * Composite types might change during resolution. Use this setter to update open type
+     */
+    public void setOpenType(final O openType) {
+        this.openType = openType;
+    }
 }