Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

TestMetadataResolver.java 3.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package org.apache.archiva.repository.maven.mock;
  2. /*
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. import org.apache.archiva.metadata.model.ArtifactMetadata;
  20. import org.apache.archiva.metadata.model.ProjectVersionMetadata;
  21. import org.apache.archiva.metadata.model.ProjectVersionReference;
  22. import org.apache.archiva.metadata.repository.MetadataResolutionException;
  23. import org.apache.archiva.metadata.repository.MetadataResolver;
  24. import org.apache.archiva.metadata.repository.RepositorySession;
  25. import org.springframework.stereotype.Service;
  26. import java.util.Collection;
  27. // FIXME: remove - this is useless, better to mock it or avoid needing it
  28. @Service( "metadataResolver#test" )
  29. public class TestMetadataResolver
  30. implements MetadataResolver
  31. {
  32. @Override
  33. public ProjectVersionMetadata resolveProjectVersion( RepositorySession session, String repoId, String namespace,
  34. String projectId, String projectVersion )
  35. throws MetadataResolutionException
  36. {
  37. return null;
  38. }
  39. @Override
  40. public Collection<ProjectVersionReference> resolveProjectReferences( RepositorySession session, String repoId,
  41. String namespace, String projectId,
  42. String projectVersion )
  43. throws MetadataResolutionException
  44. {
  45. return null;
  46. }
  47. @Override
  48. public Collection<String> resolveRootNamespaces( RepositorySession session, String repoId )
  49. throws MetadataResolutionException
  50. {
  51. return null;
  52. }
  53. @Override
  54. public Collection<String> resolveNamespaces( RepositorySession session, String repoId, String namespace )
  55. throws MetadataResolutionException
  56. {
  57. return null;
  58. }
  59. @Override
  60. public Collection<String> resolveProjects( RepositorySession session, String repoId, String namespace )
  61. throws MetadataResolutionException
  62. {
  63. return null;
  64. }
  65. @Override
  66. public Collection<String> resolveProjectVersions( RepositorySession session, String repoId, String namespace,
  67. String projectId )
  68. throws MetadataResolutionException
  69. {
  70. return null;
  71. }
  72. @Override
  73. public Collection<ArtifactMetadata> resolveArtifacts( RepositorySession session, String repoId, String namespace,
  74. String projectId, String projectVersion )
  75. throws MetadataResolutionException
  76. {
  77. return null;
  78. }
  79. }