Search in sources :

Example 1 with PCEPExtensionProviderActivator

use of org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderActivator in project bgpcep by opendaylight.

the class ServiceLoaderPCEPExtensionProviderContext method create.

public static PCEPExtensionProviderContext create() {
    final PCEPExtensionProviderContext ctx = new SimplePCEPExtensionProviderContext();
    final ServiceLoader<PCEPExtensionProviderActivator> loader = ServiceLoader.load(PCEPExtensionProviderActivator.class);
    for (final PCEPExtensionProviderActivator a : loader) {
        a.start(ctx);
    }
    return ctx;
}
Also used : PCEPExtensionProviderContext(org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderContext) PCEPExtensionProviderActivator(org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderActivator)

Aggregations

PCEPExtensionProviderActivator (org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderActivator)1 PCEPExtensionProviderContext (org.opendaylight.protocol.pcep.spi.PCEPExtensionProviderContext)1