0c5ef0113ea9d60d4887bf05ef60471ee75f8549
[appc.git] / appc-provider / appc-provider-bundle / src / main / java / org / opendaylight / yang / gen / v1 / org / onap / appc / provider / impl / rev140523 / AppcProviderModule.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ============LICENSE_END=========================================================
22  */
23
24 package org.opendaylight.yang.gen.v1.org.onap.appc.provider.impl.rev140523;
25
26 import org.onap.appc.provider.AppcProvider;
27
28 /**
29  * This was generated code. It was generated into the source tree because it has to be manually modified.
30  * 
31  */
32 public class AppcProviderModule extends
33                 org.opendaylight.yang.gen.v1.org.onap.appc.provider.impl.rev140523.AbstractAppcProviderModule {
34
35     /**
36      * @param identifier
37      * @param dependencyResolver
38      */
39     @SuppressWarnings("javadoc")
40     public AppcProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
41                               org.opendaylight.controller.config.api.DependencyResolver dependencyResolver) {
42         super(identifier, dependencyResolver);
43     }
44
45     /**
46      * @param identifier
47      * @param dependencyResolver
48      * @param oldModule
49      * @param oldInstance
50      */
51     @SuppressWarnings("javadoc")
52     public AppcProviderModule(org.opendaylight.controller.config.api.ModuleIdentifier identifier,
53                               org.opendaylight.controller.config.api.DependencyResolver dependencyResolver,
54                               org.opendaylight.yang.gen.v1.org.onap.appc.provider.impl.rev140523.AppcProviderModule oldModule,
55                               java.lang.AutoCloseable oldInstance) {
56         super(identifier, dependencyResolver, oldModule, oldInstance);
57     }
58
59     /**
60      * @see org.opendaylight.yang.gen.v1.org.onap.appc.provider.impl.rev140523.AbstractAppcProviderModule#customValidation()
61      */
62     @Override
63     public void customValidation() {
64         // add custom validation form module attributes here.
65     }
66
67     /**
68      * This method is manually updated to actually invoke the provider implementation
69      * 
70      * @see org.opendaylight.yang.gen.v1.org.onap.appc.provider.impl.rev140523.AbstractAppcProviderModule#createInstance()
71      */
72     @Override
73     public java.lang.AutoCloseable createInstance() {
74
75         final AppcProvider provider =
76             new AppcProvider(getDataBrokerDependency(), getNotificationServiceDependency(), getRpcRegistryDependency());
77         return new AutoCloseable() {
78
79             @Override
80             public void close() throws Exception {
81                 provider.close();
82             }
83         };
84
85     }
86
87 }