Refactor DataBroker adapter wiring
[controller.git] / opendaylight / config / yang-test / src / main / java / org / opendaylight / controller / config / yang / test / impl / MultipleDependenciesModuleStub.txt
1         return new org.opendaylight.controller.config.yang.test.impl.CheckedAutoCloseable() {
2             @Override
3             public synchronized void close() throws Exception {
4                 if(getSingleDependency() != null && getSingleDependency().isClosed() == true) {
5                     // Simulate a cleanup on dependencies that should not be closed yet
6                     throw new java.lang.Error("Dependency was closed first");
7                 }
8                 for (org.opendaylight.controller.config.yang.test.impl.CheckedAutoCloseable autoCloseable : getTestingDepsDependency()) {
9                     if(autoCloseable.isClosed() == true) {
10                         // Simulate a cleanup on dependencies that should not be closed yet
11                         throw new java.lang.Error("Dependency was closed first");
12                     }
13                 }
14                 super.close();
15             }
16         };