2 * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
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
8 package org.opendaylight.mdsal.binding.javav2.dom.codec.api;
10 import com.google.common.annotations.Beta;
11 import java.lang.reflect.InvocationHandler;
13 import org.opendaylight.mdsal.binding.javav2.spec.structural.Augmentable;
14 import org.opendaylight.mdsal.binding.javav2.spec.structural.Augmentation;
17 * Interface which should be implemented by proxy {@link InvocationHandler} to
18 * obtain augmentations from proxy implementations of {@link Augmentable}
22 * If implemented proxy does not implement this interface, its augmentations are
23 * not properly serialized / deserialized.
26 public interface AugmentationReader {
32 * - object implemented this interface
33 * @return augmentations
35 Map<Class<? extends Augmentation<?>>, Augmentation<?>> getAugmentations(Object obj);