I have defined a class that will implement a sling scheduler for specific jobs. I have access to the componentContext and bundleContext. I have tried using the bundleContext to get the referenced service for CQ5 to gain access to the request. I have also tried using annotations and setting up a reference to the repository to get the JCR object, which is returning the node refrerence. However, my end result is to access actual page objects from cq. I found documentation on using JcrResourceResolverFactory to get the resourceResolver but the class has been deprecated and resourceResolverFactory is recommended for use - which is throwing type is unresolved. So essentially I would like to just the pageContext or resourceResolver in the simpliest way for my class (I have more experience with custom taglibs).
ResourceResolverFactory is the way to do what you want to do. How are you trying to obtain the reference to it? Have you looked at the import statements in your bundle to make sure you are importing the right class?
I am getting the resourceResolverFactory from the bundleContext using the serviceReference. I used the session for the authentication, it appears to be giving me the resourceResolver and from there I can access the pageManager. I was able to resolve the error with the imported classes.