org.sonatype.nexus.proxy.repository.Repository.getProviderRole()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(105)

本文整理了Java中org.sonatype.nexus.proxy.repository.Repository.getProviderRole方法的一些代码示例,展示了Repository.getProviderRole的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Repository.getProviderRole方法的具体详情如下:
包路径:org.sonatype.nexus.proxy.repository.Repository
类名称:Repository
方法名:getProviderRole

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() );

相关文章