将蓝图OSGi服务注入JSF/PrimeFaces bean [英] Injecting blueprint OSGi service into JSF/PrimeFaces bean

查看:109
本文介绍了将蓝图OSGi服务注入JSF/PrimeFaces bean的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于顶级OSGi和Karaf服务器的项目.对于依赖项注入,我们使用Aries Blueprint. 该项目的主要部分是Apache Camel路由和集成的东西,但是现在我需要创建一些维护Web界面. 因此,我尝试使用JSF-PrimeFaces实现.我能够创建一些演示,可以在Karaf下的OSGi中工作,没关系.

I have a project built on top OSGi and Karaf server. For dependency injection we are using Aries Blueprint. The main part of the project is a Apache Camel routes and integration things, but now I need to create some maintenance web interface. So I give a try to JSF - PrimeFaces implementation. I was able to create some demo, which works in OSGi under Karaf, that's ok.

现在,我想知道是否可以在这里使用Blueprint,以引用我们已经拥有的一些OSGi服务并将该服务注入JSF Bean,以便我们可以从已编写的代码中受益.

Now I'd like to know if it's possible to use Blueprint here, to reference some already existing OSGi services we have and inject the service into JSF Bean, so we can benefit from already written code.

可以帮我吗?

推荐答案

我们通过以下方式解决了此问题:

We solved this in the following way:

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆