public class InstalledComponent<T extends RepositoryConfig>
extends java.lang.Object
implements java.io.Serializable
构造器和说明 |
---|
InstalledComponent(RepositoryFactoryProvider<T> factory,
java.lang.String repoName,
java.lang.String workRoot) |
InstalledComponent(RepositoryFactoryProvider<T> factory,
java.lang.String repoName,
java.lang.String workRoot,
boolean shared) |
限定符和类型 | 方法和说明 |
---|---|
void |
apply()
排他模式应用
|
void |
apply(RepositoryApplyPolicy policy)
应用
|
RepositoryFactoryProvider<T> |
getFactory() |
java.lang.String |
getRepoName() |
java.lang.String |
getWorkRoot() |
boolean |
isShared() |
ResourceRepository |
offer()
提供仓库(懒加载)
|
public InstalledComponent(RepositoryFactoryProvider<T> factory, java.lang.String repoName, java.lang.String workRoot)
public InstalledComponent(RepositoryFactoryProvider<T> factory, java.lang.String repoName, java.lang.String workRoot, boolean shared)
public RepositoryFactoryProvider<T> getFactory()
public java.lang.String getRepoName()
public java.lang.String getWorkRoot()
public boolean isShared()
public ResourceRepository offer() throws RepositoryException
RepositoryException
public void apply() throws RepositoryException
public void apply(RepositoryApplyPolicy policy) throws RepositoryException
policy
- 模式RepositoryException