blueprint-osgi

    1熱度

    1回答

    我正在開發http客戶端應用程序作爲OSGI捆綁項目,我使用apache maven創建項目文件夾結構,使用下面的命令。 mvn archetype:generate -DarchetypeGroupId=org.apache.karaf.archetypes -DarchetypeArtifactId=karaf-blueprint-archetype -DarchetypeVersion=2.

    0熱度

    1回答

    成功試圖實現我自己的藍圖攔截器以使用命名空間處理程序跟蹤方法的入口/出口後,我現在正在尋找增強它的攔截器本身被定義爲同一藍圖中的另一個bean xml和我的命名空間元素使用ref =「interceptorBeanName」。即,我試圖註冊一個實際上委託給同一藍圖中定義的另一個攔截器實例的攔截器。 但是,如何獲取在藍圖中定義的Interceptor bean的引用? 我在Google搜索了好幾個小

    1熱度

    2回答

    您好我正在使用FeaturesService和BundleContext在運行時加載一些功能和捆綁。所有這些東西都成功加載。之後,如果我對bundlecontext對象進行操作,我會得到 java.lang.IllegalStateException:無效的BundleContext。 @Inject FeaturesService service; @Before public void

    0熱度

    1回答

    我使用的是Apache Camel路由,我想啓用/禁用Shiro安全。 這是路線(blueprint.xml):啓用在這種情況下,安全 public void tokeninject(Exchange exchange) throws Exception { ShiroSecurityToken shiroSecurityToken = new ShiroSecurit

    0熱度

    1回答

    我添加一個OSGi的服務MyService apache和karaf大致這樣: 創建和註釋的服務及其imlementation。 public interface MyService {//...} @OsgiServiceProvider(classes=MyService .class) @Singleton public class MyServiceImpl implements

    0熱度

    1回答

    我使用Apache的駱駝,我想實例化blueprint.xml Java類 這是類的構造函數: public class ShiroSecurityPolicy implements AuthorizationPolicy { private static final Logger LOG = LoggerFactory.getLogger(ShiroSecurityPolicy.c

    0熱度

    2回答

    我使用Apache的駱駝和我在blueprint.xml文件bean標籤,如下所示: <bean id="shiroPolicy" class="org.apache.camel.component.shiro.security.ShiroSecurityPolicy"> <argument value="shiro.ini"/> <property name="pe

    0熱度

    1回答

    我們使用的是Jboss fuse 6.2 along with technical stack blueprint,camel ,activeMQ and Mybatis. 我們需要知道如何在OSGI配置屬性文件, 按我的知識,我們可以配置.cfg的文件,但有任何最簡單的方式來使用像彈簧配置配置。 在我們的代碼中,我們正在從屬性文件中讀取。使用命名空間ext:proeprtyplaceHolder

    0熱度

    1回答

    我喜歡在我的CXF端點定義中爲布爾屬性使用屬性佔位符。我已閱讀關於http://camel.apache.org/using-propertyplaceholder.html中的佔位符前綴的文檔,但ik無法弄清楚將其應用於我的端點配置。字符串佔位符正常工作。在下面的示例中,我使用布爾屬性$ {ws-logging},並且XML不會進行驗證。如何在CXF端點配置中爲布爾屬性使用屬性佔位符? <blu

    0熱度

    1回答

    Blueprint <bean>標記創建的實例是否可以通過使用OSGi聲明式服務機制指定的服務引用自動注入? import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference; @Component(service={}) publ