# Access Confluence Java API (AbstractPage) from Rest Endpoint in a Plugin

**URL:** <https://community.developer.atlassian.com/t/access-confluence-java-api-abstractpage-from-rest-endpoint-in-a-plugin/53872>\
**Category:** Confluence Server\
**Tags:** plugin-development, java, confluence-server\
**Created:** [November 22, 2021, 3:47pm UTC](https://community.developer.atlassian.com/t/access-confluence-java-api-abstractpage-from-rest-endpoint-in-a-plugin/53872 "2021-11-22T15:47:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ianRagudo](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ianragudo/32/44527_2.png) [@ianRagudo](https://community.developer.atlassian.com/u/ianRagudo)\
**Post date:** [November 24, 2021, 12:23am UTC](https://community.developer.atlassian.com/t/access-confluence-java-api-abstractpage-from-rest-endpoint-in-a-plugin/53872/4 "2021-11-24T00:23:56Z")

</div>

I believe so, @JohnReese . [This is the document](https://developer.atlassian.com/server/confluence/accessing-confluence-components-from-plugin-modules/) I double-checked now and it is aligned with the one you shared.

If autowire does not work for you, have you tried retrieving the component explicitly via `ContainerManager#getComponent`?

> [@JohnReese](#):
>
> ```auto
> Unresolved requirements: osgi.extender; (&(osgi.extender=osgi.component)(version>=1.3.0)(!(version>=2.0.0)))]
> 
> ```

For this error, check [this thread](https://community.developer.atlassian.com/t/osgi-extender-unresolved-requirements/32187), they have discussed this similar problem; might lead you to a solution.

---

_[View the full topic](https://community.developer.atlassian.com/t/access-confluence-java-api-abstractpage-from-rest-endpoint-in-a-plugin/53872)._
