タグ付けされた質問 「hk2」

8
Jersey 2.0での依存性注入
以前のJersey 1.xの知識がない状態でゼロから始めて、私はJersey 2.0プロジェクトで依存関係注入をセットアップする方法を理解するのに苦労しています。 また、HK2がJersey 2.0で利用可能であることも理解していますが、Jersey 2.0の統合に役立つドキュメントを見つけることができないようです。 @ManagedBean @Path("myresource") public class MyResource { @Inject MyService myService; /** * Method handling HTTP GET requests. The returned object will be sent * to the client as "text/plain" media type. * * @return String that will be returned as a text/plain response. */ @GET …
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.