You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
Would be awesome to show exactly how to access a client instance from within a resource.
Is the prescribed method to add a parameter to the init function for the resource with the client or is there some way to do a wrapper like "@context" to grab the client?
The text was updated successfully, but these errors were encountered:
@jensenbox You can either simply add the Client instance to the constructor parameters of your JAX-RS resource class and pass the Client instance on instantiation of that class (e. g. in the Application#run() method) or use HK2 to inject the Client instance into your resource class via the @Inject annotation.
Would be awesome to show exactly how to access a client instance from within a resource.
Is the prescribed method to add a parameter to the init function for the resource with the client or is there some way to do a wrapper like "@context" to grab the client?
The text was updated successfully, but these errors were encountered: