This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new de0eef9  [hotfix] Update Maven archetype for data streams
de0eef9 is described below

commit de0eef9db380f3087bf05ce26b855e97ab39e462
Author: Dominik Riemer <[email protected]>
AuthorDate: Mon Jul 5 20:24:01 2021 +0200

    [hotfix] Update Maven archetype for data streams
---
 .../archetype-resources/src/main/java/Init.java    |  3 +-
 .../java/pe/source.__packageName__/DataSource.java | 41 ----------------------
 .../__classNamePrefix__Stream.java                 |  2 +-
 3 files changed, 2 insertions(+), 44 deletions(-)

diff --git 
a/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/Init.java
 
b/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/Init.java
index face0d2..976fd71 100644
--- 
a/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/Init.java
+++ 
b/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/Init.java
@@ -24,13 +24,12 @@ package ${package};
 import org.apache.streampipes.container.init.DeclarersSingleton;
 import 
org.apache.streampipes.container.standalone.init.StandaloneModelSubmitter;
 import ${package}.config.Config;
-import ${package}.pe.source.${packageName}.DataSource;
 
 public class Init extends StandaloneModelSubmitter {
 
   public static void main(String[] args) throws Exception {
     DeclarersSingleton.getInstance()
-            .add(new DataSource());
+            .add(new 
${package}.pe.source.${packageName}.${classNamePrefix}Stream());
 
     new Init().init(Config.INSTANCE);
   }
diff --git 
a/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/pe/source.__packageName__/DataSource.java
 
b/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/pe/source.__packageName__/DataSource.java
deleted file mode 100644
index 734b558..0000000
--- 
a/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/pe/source.__packageName__/DataSource.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.
- *
- */
-
-package ${package}.pe.source.${packageName};
-
-import org.apache.streampipes.container.declarer.DataStreamDeclarer;
-import org.apache.streampipes.container.declarer.SemanticEventProducerDeclarer;
-import org.apache.streampipes.model.graph.DataSourceDescription;
-import org.apache.streampipes.sdk.builder.DataSourceBuilder;
-
-import java.util.Arrays;
-import java.util.List;
-
-
-public class DataSource implements SemanticEventProducerDeclarer {
-
-  public DataSourceDescription declareModel() {
-    return DataSourceBuilder.create("${package}.pe.source.${packageName}", 
"${classNamePrefix} " +
-        "Source", "")
-            .build();
-  }
-
-  public List<DataStreamDeclarer> getEventStreams() {
-    return Arrays.asList(new ${classNamePrefix}Stream());
-  }
-}
\ No newline at end of file
diff --git 
a/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/pe/source.__packageName__/__classNamePrefix__Stream.java
 
b/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/pe/source.__packageName__/__classNamePrefix__Stream.java
index dc08881..2fdcd38 100644
--- 
a/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/pe/source.__packageName__/__classNamePrefix__Stream.java
+++ 
b/archetypes/streampipes-archetype-pe-sources/src/main/resources/archetype-resources/src/main/java/pe/source.__packageName__/__classNamePrefix__Stream.java
@@ -40,7 +40,7 @@ import ${package}.config.Config;
 public class ${classNamePrefix}Stream extends AbstractAdapterIncludedStream {
 
   @Override
-  public SpDataStream declareModel(DataSourceDescription sep) {
+  public SpDataStream declareModel() {
     return DataStreamBuilder.create("${package}.pe.source.${packageName}")
           .withLocales(Locales.EN)
           .withAssets(Assets.DOCUMENTATION, Assets.ICON)

Reply via email to