Csaba Meszaros 7年 前 This works for services fine (e.g. if we have API), but what about the modules which are dedicated to be ResourceLoader holders? I have a module which contains the class which implements ResourceBundleLoader, and a Language.properties file. Let this module be named as com.example.registration.resource. How would you add it as a dependency to the fragment using it? 投票するためにはログインが必要です。 次として送信する: キャンセル
Rocco Germinario 7年 前 Interesting technique for injecting reference to services.But it's not really about dependencies: I tried to simply use MemberRequestLocalServiceUtil and it just works... 投票するためにはログインが必要です。 次として送信する: キャンセル David H Nebinger Rocco Germinario 7年 前 The Util classes are effectively deprecated when using OSGi. You'll hear over and over again that if you're doing OSGi, you should do OSGi and avoid the static Util classes. 投票するためにはログインが必要です。 次として送信する: キャンセル
David H Nebinger Rocco Germinario 7年 前 The Util classes are effectively deprecated when using OSGi. You'll hear over and over again that if you're doing OSGi, you should do OSGi and avoid the static Util classes. 投票するためにはログインが必要です。 次として送信する: キャンセル
Rafik H 7年 前 Yes, Outside using the Util class for Services. Other components are only accessible using OSGi service registry. one practical example is using Item Selector in your fragment. 投票するためにはログインが必要です。 次として送信する: キャンセル David H Nebinger Rafik H 7年 前 You shouldn't even use the Util classes for services.If you're doing OSGi, then do OSGi. 投票するためにはログインが必要です。 次として送信する: キャンセル
David H Nebinger Rafik H 7年 前 You shouldn't even use the Util classes for services.If you're doing OSGi, then do OSGi. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ahmed Hasnaoui 4年 前 hi all, is this still valid for 7.1? 投票するためにはログインが必要です。 次として送信する: キャンセル David H Nebinger Ahmed Hasnaoui 4年 前 Yes, as well as for 7.2. 投票するためにはログインが必要です。 次として送信する: キャンセル Javi Torres David H Nebinger 4年 前 - 編集済み Hi David, thanks for the blog post. I'm trying to use this approach, and it works fine with my custom service, but only if the service does not have any custom finder defined. Otherwise, the service object I'm pushing as a request attribute is null. Do you know if there is a workaround for this? Thanks! 投票するためにはログインが必要です。 次として送信する: キャンセル
David H Nebinger Ahmed Hasnaoui 4年 前 Yes, as well as for 7.2. 投票するためにはログインが必要です。 次として送信する: キャンセル Javi Torres David H Nebinger 4年 前 - 編集済み Hi David, thanks for the blog post. I'm trying to use this approach, and it works fine with my custom service, but only if the service does not have any custom finder defined. Otherwise, the service object I'm pushing as a request attribute is null. Do you know if there is a workaround for this? Thanks! 投票するためにはログインが必要です。 次として送信する: キャンセル
Javi Torres David H Nebinger 4年 前 - 編集済み Hi David, thanks for the blog post. I'm trying to use this approach, and it works fine with my custom service, but only if the service does not have any custom finder defined. Otherwise, the service object I'm pushing as a request attribute is null. Do you know if there is a workaround for this? Thanks! 投票するためにはログインが必要です。 次として送信する: キャンセル