本文整理汇总了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;
}
示例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();
}
});
}
示例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;
}
示例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);
}
示例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;
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}