X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fconfig%2Fyang-test%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fyang%2Ftest%2Fimpl%2FIdentityTestModule.java;h=bda3548892cd31b967ea6a0ee30fb22007dd174d;hp=b000f11e4e352f0d76f8d6cf7e55449863951071;hb=5f0a19773c0389e25367dabd19021a434f6b6f3f;hpb=07c30f447bd1366ba18e6f0f41ac768a16dbc901 diff --git a/opendaylight/config/yang-test/src/main/java/org/opendaylight/controller/config/yang/test/impl/IdentityTestModule.java b/opendaylight/config/yang-test/src/main/java/org/opendaylight/controller/config/yang/test/impl/IdentityTestModule.java index b000f11e4e..bda3548892 100644 --- a/opendaylight/config/yang-test/src/main/java/org/opendaylight/controller/config/yang/test/impl/IdentityTestModule.java +++ b/opendaylight/config/yang-test/src/main/java/org/opendaylight/controller/config/yang/test/impl/IdentityTestModule.java @@ -1,45 +1,30 @@ -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ - package org.opendaylight.controller.config.yang.test.impl; - -/** -* -*/ -public final class IdentityTestModule extends org.opendaylight.controller.config.yang.test.impl.AbstractIdentityTestModule - { - +public class IdentityTestModule extends org.opendaylight.controller.config.yang.test.impl.AbstractIdentityTestModule { public IdentityTestModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) { super(identifier, dependencyResolver); } - public IdentityTestModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, - IdentityTestModule oldModule, java.lang.AutoCloseable oldInstance) { - + public IdentityTestModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver, org.opendaylight.controller.config.yang.test.impl.IdentityTestModule oldModule, java.lang.AutoCloseable oldInstance) { super(identifier, dependencyResolver, oldModule, oldInstance); } @Override - protected void customValidation(){ - // Add custom validation for module attributes here. + public void customValidation() { + // add custom validation form module attributes here. } @Override public java.lang.AutoCloseable createInstance() { - System.err.println(getAfi()); - System.err.println(getAfiIdentity()); + org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(getClass()); + logger.info("Afi: {}", getAfi()); + logger.info("Afi class: {}", getAfiIdentity()); - getAfiIdentity(); for (Identities identities : getIdentities()) { - identities.resolveAfi(); - identities.resolveSafi(); + logger.info("Identities Afi class: {}", identities.resolveAfi()); + logger.info("Identities Safi class: {}", identities.resolveSafi()); + } - getIdentitiesContainer().resolveAfi(); + logger.info("IdentityContainer Afi class: {}", getIdentitiesContainer().resolveAfi()); return new AutoCloseable() { @Override @@ -48,4 +33,5 @@ public final class IdentityTestModule extends org.opendaylight.controller.config }; } + }