当前位置: 首页>>代码示例>>Java>>正文


Java DOMService类代码示例

本文整理汇总了Java中org.opendaylight.controller.md.sal.dom.api.DOMService的典型用法代码示例。如果您正苦于以下问题:Java DOMService类的具体用法?Java DOMService怎么用?Java DOMService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DOMService类属于org.opendaylight.controller.md.sal.dom.api包,在下文中一共展示了DOMService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createBuilder

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
protected final AdapterBuilder<? extends BindingService, DOMService> createBuilder(final Class<? extends BindingService> key) {
    final Factory<?> factory = FACTORIES.get(key);
    Preconditions.checkArgument(factory != null, "Unsupported service type %s", key);
    final BindingDOMAdapterBuilder<?> builder = factory.newBuilder();
    builder.setCodec(codec);
    return builder;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:9,代码来源:BindingDOMAdapterLoader.java

示例2: BindingMountPointAdapter

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
public BindingMountPointAdapter(final BindingToNormalizedNodeCodec codec, final DOMMountPoint domMountPoint) {
    identifier = codec.getCodecRegistry().fromYangInstanceIdentifier(domMountPoint.getIdentifier());
    services = CacheBuilder.newBuilder().build(new BindingDOMAdapterLoader(codec) {

        @Override
        protected DOMService getDelegate(Class<? extends DOMService> reqDeleg) {
            return domMountPoint.getService(reqDeleg).orNull();
        }
    });
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:11,代码来源:BindingMountPointAdapter.java

示例3: addService

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
public <T extends DOMService> DOMMountPointBuilder addService(final Class<T> type, final T impl) {
    services.putInstance(type, impl);
    return this;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:6,代码来源:DOMMountPointServiceImpl.java

示例4: create

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
public static final SimpleDOMMountPoint create(final YangInstanceIdentifier identifier, final ClassToInstanceMap<DOMService> services, final SchemaContext ctx) {
    return new SimpleDOMMountPoint(identifier, services, ctx);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:4,代码来源:SimpleDOMMountPoint.java

示例5: SimpleDOMMountPoint

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
private SimpleDOMMountPoint(final YangInstanceIdentifier identifier, final ClassToInstanceMap<DOMService> services, final SchemaContext ctx) {
    this.identifier = identifier;
    this.services = ImmutableClassToInstanceMap.copyOf(services);
    this.schemaContext = ctx;
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:6,代码来源:SimpleDOMMountPoint.java

示例6: getService

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
public <T extends DOMService> Optional<T> getService(final Class<T> cls) {
    return Optional.fromNullable(services.getInstance(cls));
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:5,代码来源:SimpleDOMMountPoint.java

示例7: createInstance

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
protected final T createInstance(final ClassToInstanceMap<DOMService> delegates) {
    Preconditions.checkState(codec != null);
    return createInstance(codec,delegates);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:6,代码来源:BindingDOMAdapterBuilder.java

示例8: getRequiredDelegates

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
public Set<? extends Class<? extends DOMService>> getRequiredDelegates() {
    return ImmutableSet.of(DOMDataBroker.class);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:5,代码来源:BindingDOMDataBrokerAdapter.java

示例9: createInstance

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
protected DataBroker createInstance(final BindingToNormalizedNodeCodec codec,
        final ClassToInstanceMap<DOMService> delegates) {
    final DOMDataBroker domDataBroker = delegates.getInstance(DOMDataBroker.class);
    return new BindingDOMDataBrokerAdapter(domDataBroker, codec);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:7,代码来源:BindingDOMDataBrokerAdapter.java

示例10: createInstance

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
protected RpcConsumerRegistry createInstance(final BindingToNormalizedNodeCodec codec,
        final ClassToInstanceMap<DOMService> delegates) {
    final DOMRpcService domRpc  = delegates.getInstance(DOMRpcService.class);
    return new BindingDOMRpcServiceAdapter(domRpc  , codec);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:7,代码来源:BindingDOMRpcServiceAdapter.java

示例11: getRequiredDelegates

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
public Set<? extends Class<? extends DOMService>> getRequiredDelegates() {
    return ImmutableSet.of(DOMRpcService.class);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:5,代码来源:BindingDOMRpcServiceAdapter.java

示例12: getRequiredDelegates

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
public Set<Class<? extends DOMService>> getRequiredDelegates() {
    return ImmutableSet.<Class<? extends DOMService>>of(DOMNotificationPublishService.class);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:5,代码来源:BindingDOMNotificationPublishServiceAdapter.java

示例13: createInstance

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
protected NotificationPublishService createInstance(final BindingToNormalizedNodeCodec codec,
        final ClassToInstanceMap<DOMService> delegates) {
    final DOMNotificationPublishService domPublish = delegates.getInstance(DOMNotificationPublishService.class);
    return new BindingDOMNotificationPublishServiceAdapter(codec, domPublish);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:7,代码来源:BindingDOMNotificationPublishServiceAdapter.java

示例14: createInstance

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
protected NotificationService createInstance(final BindingToNormalizedNodeCodec codec,
        final ClassToInstanceMap<DOMService> delegates) {
    final DOMNotificationService domNotification = delegates.getInstance(DOMNotificationService.class);
    return new BindingDOMNotificationServiceAdapter(codec.getCodecRegistry(), domNotification);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:7,代码来源:BindingDOMNotificationServiceAdapter.java

示例15: getRequiredDelegates

import org.opendaylight.controller.md.sal.dom.api.DOMService; //导入依赖的package包/类
@Override
public Set<? extends Class<? extends DOMService>> getRequiredDelegates() {
    return ImmutableSet.of(DOMNotificationService.class);
}
 
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:5,代码来源:BindingDOMNotificationServiceAdapter.java


注:本文中的org.opendaylight.controller.md.sal.dom.api.DOMService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。