[VID-3] Setting docker image tag
[vid.git] / vid / src / main / java / org / openecomp / vid / conf / ExternalAppInitializer.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.vid.conf;
22
23 import java.util.Arrays;
24
25 import org.openecomp.portalsdk.core.conf.AppInitializer;
26
27 /**
28  * The Class ExternalAppInitializer.
29  */
30 public class ExternalAppInitializer extends  AppInitializer{
31         
32         
33         /* (non-Javadoc)
34          * @see org.openecomp.portalsdk.core.conf.AppInitializer#getRootConfigClasses()
35          */
36         @Override
37     protected Class<?>[] getRootConfigClasses() {
38         return super.getRootConfigClasses();
39     }
40   
41     /* (non-Javadoc)
42      * @see org.openecomp.portalsdk.core.conf.AppInitializer#getServletConfigClasses()
43      */
44     @Override
45     protected Class<?>[] getServletConfigClasses() {
46 //      Class<?>[] configClasses =  super.getServletConfigClasses();
47 //      Class<?>[] additionalConfigClasses  = Arrays.copyOf(configClasses, configClasses.length);
48 //      addConfigClass(additionalConfigClasses, ExternalAppConfig.class);
49 //      return additionalConfigClasses;
50 //      
51         return new Class[] {ExternalAppConfig.class};
52     }
53     
54     /**
55      * Adds the config class.
56      *
57      * @param a the a
58      * @param e the e
59      * @return the class[]
60      */
61     static Class<?>[] addConfigClass(Class<?>[] a, Class<?> e) {
62         a  = Arrays.copyOf(a, a.length + 1);
63         a[a.length - 1] = e;
64         return a;
65     }
66   
67     /* (non-Javadoc)
68      * @see org.openecomp.portalsdk.core.conf.AppInitializer#getServletMappings()
69      */
70     /*
71      * URL request will direct to the Spring dispatcher for processing
72      */
73     @Override
74     protected String[] getServletMappings() {
75        return super.getServletMappings();
76     }
77  
78 }
79
80