public abstract class RepositoryProfile<T extends RepositoryConfig> extends UniqueKey implements java.io.Serializable, Updatable
构造器和说明 |
---|
RepositoryProfile() |
RepositoryProfile(java.lang.String identity,
java.lang.String repoName,
java.lang.String workRoot) |
RepositoryProfile(java.lang.String identity,
java.lang.String repoName,
java.lang.String workRoot,
boolean shared) |
RepositoryProfile(java.lang.String identity,
java.lang.String repoName,
java.lang.String workRoot,
boolean shared,
T config) |
RepositoryProfile(java.lang.String identity,
java.lang.String repoName,
java.lang.String workRoot,
T config) |
限定符和类型 | 方法和说明 |
---|---|
RepositoryProfile<T> |
clone() |
InstalledComponent<T> |
generateComponent()
仅生成安装组件(不安装)
|
abstract T |
getConfig() |
java.lang.String |
getIdentity() |
java.lang.String |
getRepoName() |
java.lang.String |
getWorkRoot() |
InstalledComponent<T> |
install()
安装并返回生产的安装组件
|
boolean |
isShared() |
abstract void |
setConfig(T config) |
void |
setIdentity(java.lang.String identity) |
void |
setRepoName(java.lang.String repoName) |
void |
setShared(boolean shared) |
void |
setWorkRoot(java.lang.String workRoot) |
boolean |
suitable()
是否适合本机安装
|
void |
update(java.lang.String srcRepo)
更新
|
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public RepositoryProfile()
public RepositoryProfile(java.lang.String identity, java.lang.String repoName, java.lang.String workRoot)
public RepositoryProfile(java.lang.String identity, java.lang.String repoName, java.lang.String workRoot, T config)
public RepositoryProfile(java.lang.String identity, java.lang.String repoName, java.lang.String workRoot, boolean shared)
public RepositoryProfile(java.lang.String identity, java.lang.String repoName, java.lang.String workRoot, boolean shared, T config)
public java.lang.String getIdentity()
public void setIdentity(java.lang.String identity)
public java.lang.String getRepoName()
public void setRepoName(java.lang.String repoName)
public java.lang.String getWorkRoot()
public void setWorkRoot(java.lang.String workRoot)
public boolean isShared()
public void setShared(boolean shared)
public abstract T getConfig()
public abstract void setConfig(T config)
public RepositoryProfile<T> clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 UniqueKey
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public InstalledComponent<T> install()
RepositoryException
public boolean suitable()
public final void update(java.lang.String srcRepo)
Updatable
public final InstalledComponent<T> generateComponent()