title: Service in OSGi not getting register
body: <p>I am trying to register a simple service in OSGi but, its not visible in the felix console once i write @Reference . Below is my service.</p>
  
  <pre><code>@Component(metatype = true , immediate = true)
  @Service(value = LoginAccessService.class)
  @Properties({
          @Property(name = "service.vendor", value = "AEM.Training"),
          @Property(name = "service.description", value = "Login Access Testing")
  })
  public class LoginAccessImpl implements LoginAccessService {
  
      private static final Logger logger = LoggerFactory.getLogger(LoginAccessImpl.class);
      @Reference
      protected AbstractSlingRepository2 repository;
  
      @Override
      public Node createNode(String path) {
  
          return null;
      }
  }
  </code></pre>
  
  <p>In Case if I write </p>
  
  <pre><code>    @Reference
      protected SlingRepository repository;
  </code></pre>
  
  <p>Its reflect in felix. Any Idea how this happens.</p>