Class IdPInstallerCLI
java.lang.Object
net.shibboleth.shared.cli.AbstractCommandLine<IdPInstallerArguments>
net.shibboleth.idp.installer.impl.IdPInstallerCLI
Command line installer.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.shibboleth.shared.cli.AbstractCommandLine
AbstractCommandLine.TerminalCodes -
Field Summary
FieldsFields inherited from class net.shibboleth.shared.cli.AbstractCommandLine
ARGS_PROPERTY, RC_INIT, RC_IO, RC_OK, RC_UNKNOWN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intdoRun(IdPInstallerArguments args) protected Class<IdPInstallerArguments>protected org.slf4j.Loggerprotected Stringstatic voidCLI entry point.static intShim for CLI entry point: Allows the code to be run from a test.private voidsetIfNotNull(String value, String propertyName) Helper for translating arguments to properties.Methods inherited from class net.shibboleth.shared.cli.AbstractCommandLine
getApplicationContext, initLogging, run, setCaseSensitiveOptions, setContextInitializer
-
Field Details
-
log
@Nullable private org.slf4j.Logger logLogger.
-
-
Constructor Details
-
IdPInstallerCLI
public IdPInstallerCLI()
-
-
Method Details
-
getArgumentClass
- Specified by:
getArgumentClassin classAbstractCommandLine<IdPInstallerArguments>
-
getVersion
- Specified by:
getVersionin classAbstractCommandLine<IdPInstallerArguments>
-
getLogger
@Nonnull protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classAbstractCommandLine<IdPInstallerArguments>
-
getAdditionalSpringResources
- Overrides:
getAdditionalSpringResourcesin classAbstractCommandLine<IdPInstallerArguments>
-
doRun
- Overrides:
doRunin classAbstractCommandLine<IdPInstallerArguments>
-
setIfNotNull
Helper for translating arguments to properties. Look at the value and if it is non-null set the associate property.- Parameters:
value- the value to check and potentially setpropertyName- the property name to set
-
runMain
Shim for CLI entry point: Allows the code to be run from a test.- Parameters:
args- arguments- Returns:
- one of the predefines
AbstractCommandLine.RC_INIT,AbstractCommandLine.RC_IO,AbstractCommandLine.RC_OKorAbstractCommandLine.RC_UNKNOWN
-
main
CLI entry point.- Parameters:
args- arguments
-