56b11aa564ae5ef95970ae0b96bf90118cbc994f
[controller.git] / opendaylight / config / config-manager-facade-xml / src / main / java / org / opendaylight / controller / config / facade / xml / mapping / attributes / resolving / AbstractAttributeResolvingStrategy.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.config.facade.xml.mapping.attributes.resolving;
10
11 import javax.management.openmbean.OpenType;
12
13 abstract class AbstractAttributeResolvingStrategy<T, O extends OpenType<?>> implements AttributeResolvingStrategy<T, O> {
14     private O openType;
15
16     public AbstractAttributeResolvingStrategy(O openType) {
17         this.openType = openType;
18     }
19
20     @Override
21     public O getOpenType() {
22         return openType;
23     }
24
25     /**
26      * Composite types might change during resolution. Use this setter to update open type
27      */
28     public void setOpenType(final O openType) {
29         this.openType = openType;
30     }
31 }