From a010c5c22bdde839c6f30d141b63abf532122603 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Fri, 4 Mar 2016 12:32:10 +0100 Subject: MountPoint for data-tree based DataBroker. Change-Id: I6a15e79747484790607d82d4024971763b4bae54 Signed-off-by: Marek Gradzki --- .../params/xml/ns/yang/v3po/impl/rev141210/V3poModule.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'v3po/impl/src/main/java/org/opendaylight') diff --git a/v3po/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/v3po/impl/rev141210/V3poModule.java b/v3po/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/v3po/impl/rev141210/V3poModule.java index f51eb0575..390545563 100644 --- a/v3po/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/v3po/impl/rev141210/V3poModule.java +++ b/v3po/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/v3po/impl/rev141210/V3poModule.java @@ -31,14 +31,10 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.rev import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.data.impl.schema.Builders; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; public class V3poModule extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.v3po.impl.rev141210.AbstractV3poModule { - private static final Logger LOG = LoggerFactory.getLogger(V3poModule.class); - public V3poModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) { super(identifier, dependencyResolver); @@ -53,14 +49,14 @@ public class V3poModule extends @Override public void customValidation() { - // add custom validation form module attributes here.AbstractModule + // add custom validation form module attributes here } @Override public java.lang.AutoCloseable createInstance() { - getDomBrokerDependency().registerProvider(new InitializationProvider()); - - V3poProvider provider = new V3poProvider(); + final Broker domBroker = getDomBrokerDependency(); + domBroker.registerProvider(new InitializationProvider()); + final V3poProvider provider = new V3poProvider(domBroker); getBrokerDependency().registerProvider(provider); return provider; } @@ -109,4 +105,5 @@ public class V3poModule extends } } + } -- cgit 1.2.3-korg