public enum RepositoryApplyPolicy extends java.lang.Enum<RepositoryApplyPolicy> implements java.io.Serializable
EXCLUSIVE 只使用这一个
ADDITIONAL 附加到当前仓库
SELECTABLE 使可选,通过ResourceRepositoryContext.getRepoByName调用
Created by rinoux on 2017/12/20.
枚举常量和说明 |
---|
ADDITIONAL
作为当前仓库的附加仓库,当前仓库找不到时再从此仓库查找
|
DISPOSABLE
一次性的EXCLUSIVE,作为临时替换不会修改配置,重启仍然使用在此之前的仓库
|
EXCLUSIVE
只使用这一个
|
SELECTABLE
可选,不主动提供服务,需要ResourceRepositoryContext.getRepoByName(String name)来获取
|
限定符和类型 | 方法和说明 |
---|---|
static RepositoryApplyPolicy |
fromString(java.lang.String policy) |
static RepositoryApplyPolicy |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static RepositoryApplyPolicy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RepositoryApplyPolicy EXCLUSIVE
public static final RepositoryApplyPolicy ADDITIONAL
public static final RepositoryApplyPolicy SELECTABLE
public static final RepositoryApplyPolicy DISPOSABLE
public static RepositoryApplyPolicy[] values()
for (RepositoryApplyPolicy c : RepositoryApplyPolicy.values()) System.out.println(c);
public static RepositoryApplyPolicy valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public static RepositoryApplyPolicy fromString(java.lang.String policy)