View Javadoc
1   package com.atlassian.plugin.spring.scanner.test.product.fecru;
2   
3   import com.atlassian.fisheye.spi.services.RepositoryService;
4   import com.atlassian.plugin.spring.scanner.annotation.component.FecruComponent;
5   import com.atlassian.plugin.spring.scanner.annotation.imports.FecruImport;
6   import org.springframework.beans.factory.annotation.Autowired;
7   
8   /**
9    * A component that's only instantiated when running in Fecru
10   */
11  @SuppressWarnings({"FieldCanBeLocal", "UnusedDeclaration"})
12  @FecruComponent
13  public class FecruOnlyComponent {
14  
15      private final RepositoryService fecruRepositoryService;
16  
17      @Autowired
18      public FecruOnlyComponent(@FecruImport RepositoryService fecruRepositoryService) {
19          this.fecruRepositoryService = fecruRepositoryService;
20      }
21  }