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.
@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;
}
}
In Case if I write
@Reference
protected SlingRepository repository;
Its reflect in felix. Any Idea how this happens.