|
|
@ -26,17 +26,18 @@ import org.springframework.core.env.SimpleCommandLinePropertySource;
|
|
|
|
import org.springframework.util.Assert;
|
|
|
|
import org.springframework.util.Assert;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Default internal implementation of {@link ApplicationArguments}.
|
|
|
|
* Default implementation of {@link ApplicationArguments}.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author Phillip Webb
|
|
|
|
* @author Phillip Webb
|
|
|
|
|
|
|
|
* @since 1.4.1
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
class DefaultApplicationArguments implements ApplicationArguments {
|
|
|
|
public class DefaultApplicationArguments implements ApplicationArguments {
|
|
|
|
|
|
|
|
|
|
|
|
private final Source source;
|
|
|
|
private final Source source;
|
|
|
|
|
|
|
|
|
|
|
|
private final String[] args;
|
|
|
|
private final String[] args;
|
|
|
|
|
|
|
|
|
|
|
|
DefaultApplicationArguments(String[] args) {
|
|
|
|
public DefaultApplicationArguments(String[] args) {
|
|
|
|
Assert.notNull(args, "Args must not be null");
|
|
|
|
Assert.notNull(args, "Args must not be null");
|
|
|
|
this.source = new Source(args);
|
|
|
|
this.source = new Source(args);
|
|
|
|
this.args = args;
|
|
|
|
this.args = args;
|
|
|
|