You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by jf...@apache.org on 2019/10/20 13:52:40 UTC
[plc4x] 05/25: [OSGi] Fixed Component Annotation.
This is an automated email from the ASF dual-hosted git repository.
jfeinauer pushed a commit to branch feature/resolve-split-package-osgi
in repository https://gitbox.apache.org/repos/asf/plc4x.git
commit 74ebb956f638d73c3616e2e783e476743e2f8d77
Author: Julian Feinauer <j....@pragmaticminds.de>
AuthorDate: Sun Oct 13 12:53:34 2019 +0200
[OSGi] Fixed Component Annotation.
---
.../drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java
index 36efea1..8612e47 100644
--- a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java
+++ b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/S7PlcDriver.java
@@ -37,7 +37,7 @@ import java.util.regex.Pattern;
* - ISO on TCP (https://tools.ietf.org/html/rfc1006)
* - TCP
*/
-@Component
+@Component(service = PlcDriver.class, immediate = true)
public class S7PlcDriver implements PlcDriver {
private static final Pattern S7_URI_PATTERN = Pattern.compile("^s7://(?<host>.*)/(?<rack>\\d{1,4})/(?<slot>\\d{1,4})(?<params>\\?.*)?");