8b51151e7ab86ed8c3f58fb12a50f52cf62a47ae
[mdsal.git] / binding / mdsal-binding-dom-codec / src / main / java / org / opendaylight / mdsal / binding / dom / codec / util / AugmentationReader.java
1 /*
2  * Copyright (c) 2014 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 package org.opendaylight.mdsal.binding.dom.codec.util;
9
10 import java.util.Map;
11 import org.opendaylight.yangtools.yang.binding.Augmentation;
12
13 /**
14  * Interface which sould be implemented by proxy {@link java.lang.reflect.InvocationHandler}
15  * to obtain augmentations from proxy implementations of {@link org.opendaylight.yangtools.yang.binding.Augmentable}
16  * object.
17  *
18  * If implemented proxy does not implement this interface, its augmentations are not
19  * properly serialized / deserialized.
20  */
21 public interface AugmentationReader {
22
23     Map<Class<? extends Augmentation<?>>, Augmentation<?>> getAugmentations(Object obj);
24 }