public RepositoryKind getRepositoryKind() { if (repositoryKind == null) { repositoryKind = new DefaultRepositoryKind(SiteRepository.class, null); } return repositoryKind; }
@Override public RepositoryKind getRepositoryKind() { if (repositoryKind == null) { repositoryKind = new MutableProxyRepositoryKind(this, null, new DefaultRepositoryKind(HostedRepository.class, null), new DefaultRepositoryKind(UpdateSiteProxyRepository.class, null)); } return repositoryKind; }
/** * Override the "default" kind with Maven specifics. */ @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; }
/** * Override the "default" kind with Maven specifics. */ public RepositoryKind getRepositoryKind() { if ( repositoryKind == null ) { repositoryKind = new MutableProxyRepositoryKind( this, Arrays.asList( new Class<?>[] { MavenRepository.class } ), new DefaultRepositoryKind( MavenHostedRepository.class, null ), new DefaultRepositoryKind( MavenProxyRepository.class, null ) ); } return repositoryKind; }
public RepositoryKind getRepositoryKind() { if ( repositoryKind == null ) { repositoryKind = new DefaultRepositoryKind( GroupRepository.class, Arrays.asList( new Class<?>[] { MavenGroupRepository.class } ) ); } return repositoryKind; }
@Override public RepositoryKind getRepositoryKind() { if (repositoryKind == null) { repositoryKind = new DefaultRepositoryKind(GroupRepository.class, Arrays.asList(new Class<?>[]{P2GroupRepository.class})); } return repositoryKind; }
@Override public RepositoryKind getRepositoryKind() { if (repositoryKind == null) { repositoryKind = new DefaultRepositoryKind(GroupRepository.class, Arrays.asList(new Class<?>[]{P2CompositeGroupRepository.class})); } return repositoryKind; }
@Inject public DefaultProxyRubyRepository(final @Named(RubyContentClass.ID) ContentClass contentClass, final ProxyRubyRepositoryConfigurator configurator, final RubygemsGateway gateway) { this.contentClass = contentClass; this.configurator = configurator; this.gateway = gateway; this.repositoryKind = new DefaultRepositoryKind(ProxyRubyRepository.class, Arrays.asList(new Class<?>[]{RubyRepository.class})); this.facade = new NexusRubygemsFacade(new ProxiedRubygemsFileSystem(gateway, new ProxyNexusStorage(this))); }
@Inject public DefaultHostedRubyRepository(final @Named(RubyContentClass.ID) ContentClass contentClass, final HostedRubyRepositoryConfigurator configurator, final RubygemsGateway gateway) { this.contentClass = contentClass; this.configurator = configurator; this.repositoryKind = new DefaultRepositoryKind(HostedRubyRepository.class, Arrays.asList(new Class<?>[]{RubyRepository.class})); this.gateway = gateway; this.facade = new NexusRubygemsFacade(new HostedRubygemsFileSystem(gateway, new NexusStorage(this))); }
@Inject public DefaultRubyGroupRepository(final @Named(RubyContentClass.ID) ContentClass contentClass, final GroupRubyRepositoryConfigurator configurator, final RubygemsGateway gateway) { this.contentClass = contentClass; this.configurator = configurator; this.facade = new NexusRubygemsFacade(new ProxiedRubygemsFileSystem(gateway, new GroupNexusStorage(this, gateway))); this.repositoryKind = new DefaultRepositoryKind(RubyGroupRepository.class, Arrays.asList(new Class<?>[]{RubyRepository.class})); }