diff options
author | 2018-12-17 17:34:37 +0000 | |
---|---|---|
committer | 2018-12-17 18:27:04 +0000 | |
commit | 69d4c0a747053473355ee82aa426589324e50d82 (patch) | |
tree | 735d591809d861326ee7e3ec93ad8a49bd0d101e /src/main/java/org/onap/aai/spike/SchemaIngestConfiguration.java | |
parent | 9a6079fe14815e6f247268ce32b3157cf95d734b (diff) |
Use Schema Service for model ingestion
Change-Id: Id2531c52491c135ae000223caf7ce79f95a9cb43
Issue-ID: AAI-2010
Signed-off-by: Michael Arrastia <MArrasti@amdocs.com>
Diffstat (limited to 'src/main/java/org/onap/aai/spike/SchemaIngestConfiguration.java')
-rw-r--r-- | src/main/java/org/onap/aai/spike/SchemaIngestConfiguration.java | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/main/java/org/onap/aai/spike/SchemaIngestConfiguration.java b/src/main/java/org/onap/aai/spike/SchemaIngestConfiguration.java deleted file mode 100644 index fcb1e71..0000000 --- a/src/main/java/org/onap/aai/spike/SchemaIngestConfiguration.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * ============LICENSE_START======================================================= - * org.onap.aai - * ================================================================================ - * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved. - * Copyright © 2017-2018 Amdocs - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ -package org.onap.aai.spike; - -import org.onap.aai.edges.EdgeIngestor; -import org.onap.aai.nodes.NodeIngestor; -import org.onap.aai.setup.AAIConfigTranslator; -import org.onap.aai.setup.ConfigTranslator; -import org.onap.aai.setup.SchemaLocationsBean; -import org.onap.aai.setup.SchemaVersions; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.PropertySource; - -@Configuration -@PropertySource(value = "file:${schema.ingest.file}", ignoreResourceNotFound = true) -public class SchemaIngestConfiguration { - - @Bean - public SchemaVersions schemaVersions() { - return new SchemaVersions(); - } - - @Bean - public SchemaLocationsBean schemaLocationsBean() { - return new SchemaLocationsBean(); - } - - @Bean - public ConfigTranslator configTranslator() { - return new AAIConfigTranslator(schemaLocationsBean(), schemaVersions()); - } - - @Bean - public NodeIngestor nodeIngestor() { - return new NodeIngestor(configTranslator()); - } - - @Bean - public EdgeIngestor edgeIngestor() { - return new EdgeIngestor(configTranslator(), schemaVersions()); - } - -} |