ddf72f39b4da73d529ddac371b9fc64cd9158a0f
[controller.git] / opendaylight / config / yang-test / src / main / java / org / opendaylight / controller / config / yang / test / impl / IdentityTestModule.java
1
2
3 package org.opendaylight.controller.config.yang.test.impl;
4 public class IdentityTestModule extends org.opendaylight.controller.config.yang.test.impl.AbstractIdentityTestModule {
5     public IdentityTestModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier, org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
6         super(identifier, dependencyResolver);
7     }
8
9     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) {
10         super(identifier, dependencyResolver, oldModule, oldInstance);
11     }
12
13     @Override
14     public void customValidation() {
15         // add custom validation form module attributes here.
16     }
17
18     @Override
19     public java.lang.AutoCloseable createInstance() {
20         org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(getClass());
21         logger.info("Afi: {}", getAfi());
22         logger.info("Afi class: {}", getAfiIdentity());
23
24         for (Identities identities : getIdentities()) {
25             logger.info("Identities Afi class: {}", identities.resolveAfi());
26             logger.info("Identities Safi class: {}", identities.resolveSafi());
27
28         }
29         logger.info("IdentityContainer Afi class: {}", getIdentitiesContainer().resolveAfi());
30
31         return new AutoCloseable() {
32             @Override
33             public void close() throws Exception {
34             }
35         };
36
37     }
38
39 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.