Package org.sonatype.nexus.proxy.repository

Examples of org.sonatype.nexus.proxy.repository.DefaultRepositoryKind


  {
    this.metadataManager = checkNotNull(metadataManager);
    this.artifactPackagingMapper = checkNotNull(artifactPackagingMapper);
    this.proxyRequestFilter = checkNotNull(proxyRequestFilter);
    this.repositoryKind = new MutableProxyRepositoryKind(this, Arrays.asList(new Class<?>[] { MavenRepository.class }),
        new DefaultRepositoryKind(MavenHostedRepository.class, null), new DefaultRepositoryKind(
            MavenProxyRepository.class, null));
    this.artifactStoreHelper = new ArtifactStoreHelper(this);
  }
View Full Code Here


      final ArtifactPackagingMapper artifactPackagingMapper)
  {
    this.metadataManager = checkNotNull(metadataManager);
    this.artifactPackagingMapper = checkNotNull(artifactPackagingMapper);
    this.artifactStoreHelper = new ArtifactStoreHelper(this);
    this.repositoryKind = new DefaultRepositoryKind(GroupRepository.class,
        Arrays.asList(new Class<?>[] { MavenGroupRepository.class }));
  }
View Full Code Here

  {
    this.m1GavCalculator = checkNotNull(m1GavCalculator);
    this.m2GavCalculator = checkNotNull(m2GavCalculator);
    this.metadataManager = checkNotNull(metadataManager);
    this.artifactPackagingMapper = checkNotNull(artifactPackagingMapper);
    this.repositoryKind = new DefaultRepositoryKind(MavenShadowRepository.class,
        Arrays.asList(new Class<?>[] { MavenRepository.class }));
    this.artifactStoreHelper = new ArtifactStoreHelper(this);
  }
View Full Code Here

  @Override
  public RepositoryKind getRepositoryKind() {
    if (repositoryKind == null) {
      // is this class able to be hosted at all?
      repositoryKind =
          new MutableProxyRepositoryKind(this, null, new DefaultRepositoryKind(HostedRepository.class, null),
              new DefaultRepositoryKind(ProxyRepository.class,
                  Arrays.asList(new Class<?>[]{P2ProxyRepository.class})));
    }

    return repositoryKind;
  }
View Full Code Here

  @Override
  public RepositoryKind getRepositoryKind() {
    if (repositoryKind == null) {
      repositoryKind =
          new DefaultRepositoryKind(GroupRepository.class,
              Arrays.asList(new Class<?>[]{P2GroupRepository.class}));
    }
    return repositoryKind;
  }
View Full Code Here

  @Override
  public RepositoryKind getRepositoryKind() {
    if (repositoryKind == null) {
      repositoryKind =
          new DefaultRepositoryKind(GroupRepository.class,
              Arrays.asList(new Class<?>[]{P2CompositeGroupRepository.class}));
    }
    return repositoryKind;
  }
View Full Code Here

  @Override
  public RepositoryKind getRepositoryKind() {
    if (repositoryKind == null) {
      repositoryKind =
          new MutableProxyRepositoryKind(this, null, new DefaultRepositoryKind(HostedRepository.class, null),
              new DefaultRepositoryKind(UpdateSiteProxyRepository.class, null));
    }

    return repositoryKind;
  }
View Full Code Here

  private final RepositoryKind repositoryKind;

  private boolean disposeInvoked;

  public Nexus4807RepositoryImpl() {
    this.repositoryKind = new DefaultRepositoryKind(Nexus4807Repository.class, null);
    this.disposeInvoked = false;
  }
View Full Code Here

            eq(new File(repoLocation, "invalid/")))).thenReturn(invalidFileCollection);

    // create Repository Mock
    Repository repository = mock(Repository.class);
    when(repository.getId()).thenReturn("mock");
    when(repository.getRepositoryKind()).thenReturn(new DefaultRepositoryKind(HostedRepository.class, null));
    when(repository.getLocalUrl()).thenReturn(repoLocation.toURI().toURL().toString());
    AttributesHandler attributesHandler = mock(AttributesHandler.class);
    when(repository.getAttributesHandler()).thenReturn(attributesHandler);
    when(repository.getLocalStorageContext()).thenReturn(new DefaultLocalStorageContext(null));
    RepositoryItemUid uid = mock(RepositoryItemUid.class);
View Full Code Here

      doReturn(Repository.class.getName()).when(entry.getValue()).getProviderRole();
      doReturn("maven2").when(entry.getValue()).getProviderHint();
      doReturn(true).when(entry.getValue()).isUserManaged();
      doReturn(null).when(entry.getValue()).adaptToFacet(ProxyRepository.class);
      doReturn(new Maven2ContentClass()).when(entry.getValue()).getRepositoryContentClass();
      doReturn(new DefaultRepositoryKind(HostedRepository.class, null)).when(entry.getValue()).getRepositoryKind();
      registry.addRepository(entry.getValue());
      testgroup.add(entry.getValue().getId());

    }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.repository.DefaultRepositoryKind

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.