-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(plc4j): Refactored the way transports are configured via the add…
…itional parameters of the connection string. * feat(plc4j): Rewrote the configuration for all java drivers to generally support overwriting (WIP) * chore(plc4j): Removed the getTimeoutManager from the Configuration interface. * chore(plc4j): Removed the non-existent "skip" config option from the plc4x-maven-plugin config. * feat(plc4j): Added support for hierarchical configurations in the ConfigurationFactory * feat(plc4j): Added the general support for configuring transports via connection-string parameters. * fis(plc4j): Actually ensured the config reaches the TcpTransport * refactor(plc4j): Changed the way the transports are configured, by detaching them from the protocol configuration. * chore: Merged in changes from develop * fix(plc4j/cbus): use correct c-bus port from constant --------- Co-authored-by: Sebastian Rühl <[email protected]>
- Loading branch information
Showing
94 changed files
with
2,053 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...c/main/java/org/apache/plc4x/java/abeth/configuration/AbEthTcpTransportConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* 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 org.apache.plc4x.java.abeth.configuration; | ||
|
||
import org.apache.plc4x.java.abeth.AbEthDriver; | ||
import org.apache.plc4x.java.transport.tcp.DefaultTcpTransportConfiguration; | ||
|
||
public class AbEthTcpTransportConfiguration extends DefaultTcpTransportConfiguration { | ||
|
||
@Override | ||
public int getDefaultPort() { | ||
return AbEthDriver.AB_ETH_PORT; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...s/src/main/java/org/apache/plc4x/java/ads/configuration/AdsTcpTransportConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* 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 org.apache.plc4x.java.ads.configuration; | ||
|
||
import org.apache.plc4x.java.ads.readwrite.AdsConstants; | ||
import org.apache.plc4x.java.transport.tcp.DefaultTcpTransportConfiguration; | ||
|
||
public class AdsTcpTransportConfiguration extends DefaultTcpTransportConfiguration { | ||
|
||
@Override | ||
public int getDefaultPort() { | ||
return AdsConstants.ADSTCPDEFAULTPORT; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.