8.3: Equivalent of gatewayContext.getSystemProperties().getSystemName();

Hello, can someone give me the Java code that is the equivalent of this…

gatewayContext.getSystemProperties().getSystemName();

…from inside a custom module? In 8.1 and earlier this would provide the Gateway Name.

It became GatewayContext::getSystemPropertiesManager in 8.3.

See GatewayContext javadocs.

.getSystemPropertiesManager() also exists in v8.1, as the other was deprecated some time ago. The major difference is that most of the convenience methods for common values don't exist in the new interface. .getSystemName() is the only survivor. For others, you need to use the props in GatewaySystemProperties or in EdgeSystemProperties with .getPropertyValue().

Thanks! This is the equivalent call:

gatewayContext.getSystemPropertiesManager().getSystemName();

Side note… it’s too bad Google doesn’t crawl the docs ( Overview ) … I’m guessing a lot of questions could be answered by Googling / ChatGPT’ing

I'm sure it does crawl them. But it doesn't matter. It is a drop of data in a sea of unrelated noise. Don't count on any LLM making sense of Ignition soon.