2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.vid.conf;
23 import java.util.Arrays;
25 import org.openecomp.portalsdk.core.conf.AppInitializer;
28 * The Class ExternalAppInitializer.
30 public class ExternalAppInitializer extends AppInitializer{
34 * @see org.openecomp.portalsdk.core.conf.AppInitializer#getRootConfigClasses()
37 protected Class<?>[] getRootConfigClasses() {
38 return super.getRootConfigClasses();
42 * @see org.openecomp.portalsdk.core.conf.AppInitializer#getServletConfigClasses()
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;
51 return new Class[] {ExternalAppConfig.class};
55 * Adds the config class.
61 static Class<?>[] addConfigClass(Class<?>[] a, Class<?> e) {
62 a = Arrays.copyOf(a, a.length + 1);
68 * @see org.openecomp.portalsdk.core.conf.AppInitializer#getServletMappings()
71 * URL request will direct to the Spring dispatcher for processing
74 protected String[] getServletMappings() {
75 return super.getServletMappings();