Class YamlSetup
java.lang.Object
de.iip_ecosphere.platform.services.environment.spring.YamlSetup
Reads information from the Spring YAML application setup.
- Author:
- Holger Eichelberger, SSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic de.iip_ecosphere.platform.transport.connectors.TransportSetupgetExternalTransportSetup(InputStream in, String[] args) Readsinas YAML file and searches for the Spring definition of the "external" binder.static de.iip_ecosphere.platform.transport.connectors.TransportSetupgetExternalTransportSetup(String[] args) Reads the default "application.yml" file and searches for the Spring definition of the "external" binder.static de.iip_ecosphere.platform.transport.connectors.TransportSetupgetInternalTransportSetup(InputStream in, String[] args) Readsinas YAML file and searches for the Spring definition of the "internal" binder.static de.iip_ecosphere.platform.transport.connectors.TransportSetupgetInternalTransportSetup(String[] args) Reads the default "application.yml" file and searches for the Spring definition of the "internal" binder.private static de.iip_ecosphere.platform.transport.connectors.TransportSetupgetSetup(InputStream in, String binder, String[] args) Readsinas YAML file and searches for the Spring definition of binders.static voidloadPluginSetup(String[] args) Loads the plugin setup if specified, in particular to also disable plugin loading for apps generated/build without plugins.private static voidSubstitutes values insetupby values inargs.
-
Constructor Details
-
YamlSetup
public YamlSetup()
-
-
Method Details
-
getExternalTransportSetup
public static de.iip_ecosphere.platform.transport.connectors.TransportSetup getExternalTransportSetup(InputStream in, String[] args) Readsinas YAML file and searches for the Spring definition of the "external" binder. Returns, if available the Transport setup from the "external" binder environment.- Parameters:
in- the input stream containing the YAML setupargs- potentially overriding command line arguments- Returns:
- the transport setup for the "external" binder, may be null for none
-
getExternalTransportSetup
public static de.iip_ecosphere.platform.transport.connectors.TransportSetup getExternalTransportSetup(String[] args) Reads the default "application.yml" file and searches for the Spring definition of the "external" binder. Returns, if available the Transport setup from the "external" binder environment.- Parameters:
args- potentially overriding command line arguments- Returns:
- the transport setup for the "external" binder, may be null for none
- See Also:
-
getInternalTransportSetup
public static de.iip_ecosphere.platform.transport.connectors.TransportSetup getInternalTransportSetup(InputStream in, String[] args) Readsinas YAML file and searches for the Spring definition of the "internal" binder. Returns, if available the Transport setup from the "internal" binder environment.- Parameters:
in- the input stream containing the YAML setupargs- potentially overriding command line arguments- Returns:
- the transport setup for the "internal" binder, may be null for none
-
getInternalTransportSetup
public static de.iip_ecosphere.platform.transport.connectors.TransportSetup getInternalTransportSetup(String[] args) Reads the default "application.yml" file and searches for the Spring definition of the "internal" binder. Returns, if available the Transport setup from the "internal" binder environment.- Parameters:
args- potentially overriding command line arguments- Returns:
- the transport setup for the "internal" binder, may be null for none
- See Also:
-
getSetup
private static de.iip_ecosphere.platform.transport.connectors.TransportSetup getSetup(InputStream in, String binder, String[] args) Readsinas YAML file and searches for the Spring definition of binders. Returns, if available the Transport setup from the respective binder environment.- Parameters:
in- the input stream containing the YAML setupbinder- the binder name, usually "internal" or "external" by IIP generation conventionsargs- potentially overriding command line arguments- Returns:
- the transport setup for the binder, may be null for none
-
loadPluginSetup
Loads the plugin setup if specified, in particular to also disable plugin loading for apps generated/build without plugins. CallYaml.resolveInstance()after loading plugins!- Parameters:
args- potentially overriding command line arguments
-
substArgs
Substitutes values insetupby values inargs.- Parameters:
setup- the setupargs- the command line arguments
-