X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=mdsalutil%2Fmdsalutil-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyang%2Fgen%2Fv1%2Furn%2Fopendaylight%2Fparams%2Fxml%2Fns%2Fyang%2Fmdsalutil%2Fimpl%2Frev150403%2FMdsaluttilimplModule.java;h=473d96254413bc7305eaaf3a4ec2122ecefd7a13;hb=refs%2Fchanges%2F97%2F19497%2F2;hp=9bfb8d6eedb2c4f2ee7ac7bc0a02cb6a18a04bfd;hpb=2bfbbe0cf9942ff975dc82fc298c603fd9cef6a6;p=vpnservice.git diff --git a/mdsalutil/mdsalutil-impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/mdsalutil/impl/rev150403/MdsaluttilimplModule.java b/mdsalutil/mdsalutil-impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/mdsalutil/impl/rev150403/MdsaluttilimplModule.java index 9bfb8d6e..473d9625 100644 --- a/mdsalutil/mdsalutil-impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/mdsalutil/impl/rev150403/MdsaluttilimplModule.java +++ b/mdsalutil/mdsalutil-impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/mdsalutil/impl/rev150403/MdsaluttilimplModule.java @@ -1,4 +1,7 @@ package org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsalutil.impl.rev150403; + +import org.opendaylight.vpnservice.mdsalutil.internal.MDSALUtilProvider; + public class MdsaluttilimplModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.mdsalutil.impl.rev150403.AbstractMdsaluttilimplModule { public MdsaluttilimplModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) { super(identifier, dependencyResolver); @@ -15,8 +18,14 @@ public class MdsaluttilimplModule extends org.opendaylight.yang.gen.v1.urn.opend @Override public java.lang.AutoCloseable createInstance() { - // TODO:implement - throw new java.lang.UnsupportedOperationException(); - } + // TODO:implement +// Can use the following to get a handle to data broker + + MDSALUtilProvider mdsalUtilProvider = new MDSALUtilProvider(); + getBrokerDependency().registerConsumer(mdsalUtilProvider); + //DataBroker dataBrokerService = getDataBrokerDependency(); + //mdsalUtilMgr.setDataProvider(dataBrokerService); + return mdsalUtilProvider ; + } }