/** * Get the startup mechanism to use * * @param defaultStartupMechanism * the default if none is set * @return the startup mechanism, or the default */ private StartupMechanism getStartupMechanism ( final StartupMechanism defaultStartupMechanism ) { if ( this.deploy.getStartupMechanism () == null || this.deploy.getStartupMechanism () == StartupMechanism.DEFAULT ) { final String type = OperatingSystemDescriptors.getProperty ( this.deploy.getOperatingSystem (), "startup", defaultStartupMechanism.name () ); return StartupMechanism.valueOf ( type ); } else { return this.deploy.getStartupMechanism (); } }
/** * Get the startup mechanism to use * * @param defaultStartupMechanism * the default if none is set * @return the startup mechanism, or the default */ private StartupMechanism getStartupMechanism ( final StartupMechanism defaultStartupMechanism ) { if ( this.deploy.getStartupMechanism () == null || this.deploy.getStartupMechanism () == StartupMechanism.DEFAULT ) { final String type = OperatingSystemDescriptors.getProperty ( this.deploy.getOperatingSystem (), "startup", defaultStartupMechanism.name () ); return StartupMechanism.valueOf ( type ); } else { return this.deploy.getStartupMechanism (); } }