2 * ===============================LICENSE_START======================================
4 * ================================================================================
5 * Copyright © 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.onap.dcae.apod.analytics.model.util.json;
23 import com.fasterxml.jackson.core.Version;
24 import com.fasterxml.jackson.databind.module.SimpleModule;
25 import org.onap.dcae.apod.analytics.model.config.tca.BaseTCAAppConfigModel;
26 import org.onap.dcae.apod.analytics.model.config.tca.BaseTCAHandle;
27 import org.onap.dcae.apod.analytics.model.config.tca.DMAAPInfo;
28 import org.onap.dcae.apod.analytics.model.config.tca.StreamsPublishes;
29 import org.onap.dcae.apod.analytics.model.config.tca.StreamsSubscribes;
30 import org.onap.dcae.apod.analytics.model.config.tca.TCAControllerAppConfig;
31 import org.onap.dcae.apod.analytics.model.util.json.mixin.config.tca.BaseTCAAppConfigModelMixin;
32 import org.onap.dcae.apod.analytics.model.util.json.mixin.config.tca.BaseTCAHandleMixin;
33 import org.onap.dcae.apod.analytics.model.util.json.mixin.config.tca.DMAAPInfoMixin;
34 import org.onap.dcae.apod.analytics.model.util.json.mixin.config.tca.StreamsPublishesMixin;
35 import org.onap.dcae.apod.analytics.model.util.json.mixin.config.tca.StreamsSubscribesMixin;
36 import org.onap.dcae.apod.analytics.model.util.json.mixin.config.tca.TCAControllerAppConfigMixin;
39 * @author Rajiv Singla . Creation Date: 8/25/2017.
41 public class TCAControllerConfigModule extends SimpleModule {
43 private static final long serialVersionUID = 1L;
45 public TCAControllerConfigModule() {
46 super("Threshold Crossing Alert Controller Config",
47 new Version(1, 0, 0, null, "org.onap.dcae.apod.analytics.model", "dcae-analytics-model"));
51 public void setupModule(final SetupContext setupContext) {
52 setupContext.setMixInAnnotations(BaseTCAAppConfigModel.class, BaseTCAAppConfigModelMixin.class);
53 setupContext.setMixInAnnotations(BaseTCAHandle.class, BaseTCAHandleMixin.class);
54 setupContext.setMixInAnnotations(DMAAPInfo.class, DMAAPInfoMixin.class);
55 setupContext.setMixInAnnotations(StreamsPublishes.class, StreamsPublishesMixin.class);
56 setupContext.setMixInAnnotations(StreamsSubscribes.class, StreamsSubscribesMixin.class);
57 setupContext.setMixInAnnotations(TCAControllerAppConfig.class, TCAControllerAppConfigMixin.class);