public class ResourceModuleManager extends java.lang.Object implements ResourceModuleManagerProvider
Created by rinoux on 2017/11/3.
构造器和说明 |
---|
ResourceModuleManager() |
限定符和类型 | 方法和说明 |
---|---|
void |
addFactory(RepositoryFactoryProvider factory) |
void |
apply(java.lang.String repoName,
RepositoryApplyPolicy policy) |
boolean |
available() |
void |
discard(java.lang.String name) |
ResourceModuleConfigProvider |
getConfig() |
ResourceRepository |
getCurrentRepo()
获取当前存储
|
FactoryLoaderProvider |
getFactoryLoader() |
java.util.Set<java.lang.String> |
getInstalledRepos() |
RepositoryInstallerProvider |
getInstaller() |
static ResourceModuleManagerProvider |
getInstance() |
RepositoryManagerProvider |
getManager() |
RepositoryContextProvider |
getProvider() |
ResourceRepository |
getRepoByName(java.lang.String name) |
java.util.Set<java.lang.String> |
getServiceRepos() |
InstalledComponent |
install(RepositoryProfile profile) |
void |
removeFactory(java.lang.String identity) |
void |
setProvider(RepositoryContextProvider provider) |
void |
uninstall(java.lang.String name) |
public static ResourceModuleManagerProvider getInstance()
public RepositoryContextProvider getProvider()
getProvider
在接口中 ResourceModuleManagerProvider
public void setProvider(RepositoryContextProvider provider)
setProvider
在接口中 ResourceModuleManagerProvider
public InstalledComponent install(RepositoryProfile profile)
install
在接口中 ResourceModuleManagerProvider
public void uninstall(java.lang.String name)
uninstall
在接口中 ResourceModuleManagerProvider
public void addFactory(RepositoryFactoryProvider factory)
addFactory
在接口中 ResourceModuleManagerProvider
public void removeFactory(java.lang.String identity)
removeFactory
在接口中 ResourceModuleManagerProvider
public void apply(java.lang.String repoName, RepositoryApplyPolicy policy) throws RepositoryException
apply
在接口中 ResourceModuleManagerProvider
RepositoryException
public void discard(java.lang.String name) throws RepositoryException
discard
在接口中 ResourceModuleManagerProvider
RepositoryException
public ResourceRepository getCurrentRepo()
getCurrentRepo
在接口中 ResourceModuleManagerProvider
public ResourceRepository getRepoByName(java.lang.String name)
getRepoByName
在接口中 ResourceModuleManagerProvider
public java.util.Set<java.lang.String> getServiceRepos()
getServiceRepos
在接口中 ResourceModuleManagerProvider
public java.util.Set<java.lang.String> getInstalledRepos()
public boolean available()
available
在接口中 ResourceModuleManagerProvider
public RepositoryInstallerProvider getInstaller()
getInstaller
在接口中 ResourceModuleManagerProvider
public FactoryLoaderProvider getFactoryLoader()
public ResourceModuleConfigProvider getConfig()
getConfig
在接口中 ResourceModuleManagerProvider
public RepositoryManagerProvider getManager()
getManager
在接口中 ResourceModuleManagerProvider