spring-boot-1.5.3.RELEASE


spring-boot-1.5.3.RELEASE
资源截图
代码片段和文件信息
/*
 * Copyright 2012-2015 the original author or authors.
 *
 * Licensed under the Apache License Version 2.0 (the “License“);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing software
 * distributed under the License is distributed on an “AS IS“ BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.boot;

import java.util.List;
import java.util.Set;

/**
 * Provides access to the arguments that were used to run a {@link SpringApplication}.
 *
 * @author Phillip Webb
 * @since 1.3.0
 */
public interface ApplicationArguments {

/**
 * Return the raw unprocessed arguments that were passed to the application.
 * @return the arguments
 */
String[] getSourceArgs();

/**
 * Return then names of all option arguments. For example if the arguments were
 * “--foo=bar --debug“ would return the values {@code [“foo“ “debug“]}.
 * @return the option names or an empty set
 */
Set getOptionNames();

/**
 * Return whether the set of option arguments parsed from the arguments contains an
 * option with the given name.
 * @param name the name to check
 * @return {@code true} if the arguments contain an option with the given name
 */
boolean containsOption(String name);

/**
 * Return the collection of values associated with the arguments option having the
 * given name.
 * 

     * 
  • if the option is present and has no argument (e.g.: “--foo“) return an empty
     * collection ({@code []})

  •  * 
  • if the option is present and has a single value (e.g. “--foo=bar“) return a
     * collection having one element ({@code [“bar“]})

  •  * 
  • if the option is present and has multiple values (e.g. “--foo=bar --foo=baz“)
     * return a collection having elements for each value ({@code [“bar“ “baz“]})

  •  * 
  • if the option is not present return {@code null}

  •  * 

 * @param name the name of the option
 * @return a list of option values for the given name
 */
List getOptionValues(String name);

/**
 * Return the collection of non-option arguments parsed.
 * @return the non-option arguments or an empty list
 */
List getNonOptionArgs();

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-21 08:31  spring-boot-1.5.3.RELEASE
     文件         157  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.editorconfig
     目录           0  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.github
     文件         727  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.githubISSUE_TEMPLATE.md
     文件         172  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.githubPULL_REQUEST_TEMPLATE.md
     文件         369  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.gitignore
     目录           0  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.mvn
     文件           8  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.mvnjvm.config
     目录           0  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.mvnwrapper
     文件       49502  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.mvnwrappermaven-wrapper.jar
     文件         110  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.mvnwrappermaven-wrapper.properties
     文件        3661  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.settings-template.xml
     文件         357  2017-04-21 08:31  spring-boot-1.5.3.RELEASE.travis.yml
     文件        2351  2017-04-21 08:31  spring-boot-1.5.3.RELEASECODE_OF_CONDUCT.adoc
     文件        9418  2017-04-21 08:31  spring-boot-1.5.3.RELEASECONTRIBUTING.adoc
     文件       11358  2017-04-21 08:31  spring-boot-1.5.3.RELEASELICENSE.txt
     文件       10363  2017-04-21 08:31  spring-boot-1.5.3.RELEASEREADME.adoc
     目录           0  2017-04-21 08:31  spring-boot-1.5.3.RELEASEeclipse
     文件       31273  2017-04-21 08:31  spring-boot-1.5.3.RELEASEeclipseeclipse-code-formatter.xml
     文件       31060  2017-04-21 08:31  spring-boot-1.5.3.RELEASEeclipseorg.eclipse.jdt.core.prefs
     文件       11556  2017-04-21 08:31  spring-boot-1.5.3.RELEASEeclipseorg.eclipse.jdt.ui.prefs
     文件       19675  2017-04-21 08:31  spring-boot-1.5.3.RELEASEeclipsespring-boot-project.setup
     文件        7058  2017-04-21 08:31  spring-boot-1.5.3.RELEASEmvnw
     文件        5006  2017-04-21 08:31  spring-boot-1.5.3.RELEASEmvnw.cmd
     文件       11672  2017-04-21 08:31  spring-boot-1.5.3.RELEASEpom.xml
     目录           0  2017-04-21 08:31  spring-boot-1.5.3.RELEASEspring-boot-actuator-docs
     文件        7226  2017-04-21 08:31  spring-boot-1.5.3.RELEASEspring-boot-actuator-docspom.xml
     目录           0  2017-04-21 08:31  spring-boot-1.5.3.RELEASEspring-boot-actuator-docssrc
     目录           0  2017-04-21 08:31  spring-boot-1.5.3.RELEASEspring-boot-actuator-docssrcmain
     目录           0  2017-04-21 08:31  spring-boot-1.5.3.RELEASEspring-boot-actuator-docssrcmainasciidoc
     文件        1166  2017-04-21 08:31  spring-boot-1.5.3.RELEASEspring-boot-actuator-docssrcmainasciidocautoconfig.adoc
............此处省略7493个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)