All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.protocol.rsvp.parser.spi.RSVPExtensionProviderContext Maven / Gradle / Ivy

There is a newer version: 0.22.6
Show newest version
/*
 * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.protocol.rsvp.parser.spi;

import org.opendaylight.protocol.util.ReferenceCache;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.RsvpTeObject;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.basic.explicit.route.subobjects.SubobjectType;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.label.subobject.LabelType;
import org.opendaylight.yangtools.concepts.Registration;

public interface RSVPExtensionProviderContext extends RSVPExtensionConsumerContext {
    void registerRsvpObjectParser(int classNum, int ctype, RSVPTeObjectParser parser);

    void registerRsvpObjectSerializer(Class objectClass, RSVPTeObjectSerializer serializer);

    Registration registerXROSubobjectSerializer(Class subobjectClass,
        XROSubobjectSerializer serializer);

    Registration registerXROSubobjectParser(int subobjectType, XROSubobjectParser parser);

    Registration registerRROSubobjectSerializer(Class subobjectClass, RROSubobjectSerializer
        serializer);

    Registration registerRROSubobjectParser(int subobjectType, RROSubobjectParser parser);

    Registration registerEROSubobjectSerializer(Class subobjectClass,
        EROSubobjectSerializer serializer);

    Registration registerEROSubobjectParser(int subobjectType, EROSubobjectParser parser);

    Registration registerLabelSerializer(Class labelClass, LabelSerializer serializer);

    Registration registerLabelParser(int ctype, LabelParser parser);

    /**
     * Get the context-wide cache for a particular object type.
     *
     * @return An object cache instance.
     */
    ReferenceCache getReferenceCache();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy