本文整理了Java中org.sonatype.nexus.proxy.repository.Repository.getProviderRole
方法的一些代码示例,展示了Repository.getProviderRole
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getProviderRole
方法的具体详情如下:
包路径:org.sonatype.nexus.proxy.repository.Repository
类名称:Repository
方法名:getProviderRole
[英]Returns the repository's "provider" role. These are getters only, and application is NOT able to change these values runtime! Note: this is a FQN of a class, that is used to "register" the component with container, and the class might reside in core but also in a plugin (separate child classloader!).
[中]返回存储库的“提供者”角色。这些只是getter,应用程序无法在运行时更改这些值!注意:这是一个类的FQN,用于向容器“注册”组件,该类可能位于core中,但也位于插件中(单独的子类加载器!)。
代码示例来源:origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin
/**
* Returns repository's role.
*
* @deprecated Use repository.getProviderRole() instead!
*/
public static String getRepositoryProviderRole(Repository repository) {
return repository.getProviderRole();
}
代码示例来源:origin: org.sonatype.nexus/nexus-rest-api
/**
* Returns repository's role.
*
* @param repository
* @return
* @deprecated Use repository.getProviderRole() instead!
*/
public static String getRepositoryProviderRole( Repository repository )
{
return repository.getProviderRole();
}
代码示例来源:origin: org.sonatype.nexus/nexus-proxy
public void addRepository( final Repository repository )
{
final RepositoryTypeDescriptor rtd =
repositoryTypeRegistry.getRepositoryTypeDescriptor( repository.getProviderRole(),
repository.getProviderHint() );
insertRepository( rtd, repository );
logger.info( "Added repository {}", RepositoryStringUtils.getFullHumanizedNameString( repository ) );
}
代码示例来源:origin: org.sonatype.nexus/nexus-proxy
protected void doRemoveRepository( final String repoId, final boolean silently )
throws NoSuchRepositoryException
{
Repository repository = getRepository( repoId );
RepositoryTypeDescriptor rtd =
repositoryTypeRegistry.getRepositoryTypeDescriptor( repository.getProviderRole(),
repository.getProviderHint() );
deleteRepository( rtd, repository, silently );
if ( !silently )
{
logger.info( "Removed repository {}", RepositoryStringUtils.getFullHumanizedNameString( repository ) );
}
}
代码示例来源:origin: org.sonatype.nexus.plugins/nexus-restlet1x-plugin
repositoryTypeRegistry.getRepositoryTypeDescriptor(repository.getProviderRole(),
repository.getProviderHint());
代码示例来源:origin: org.sonatype.nexus/nexus-rest-api
repositoryTypeRegistry.getRepositoryTypeDescriptor( repository.getProviderRole(),
repository.getProviderHint() );
内容来源于网络,如有侵权,请联系作者删除!