Gemini Blueprint and optional services [message #872236] |
Tue, 15 May 2012 18:23 |
Mastah Naleh Messages: 32 Registered: April 2012 |
Member |
|
|
Hi. Is it possible using the attribute availability to make so a service become optional ?
I did try using availability="optional" but when the service is not present, I still have to catch an exception (org.eclipse.gemini.blueprint.service.ServiceUnavailableException)
Here is my bean config:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="wwwspringframework.org/schema/beans"
xmlns:aop="wwwspringframework.org/schema/aop"
xmlns:xsi="wwww3.org/2001/XMLSchema-instance"
xmlns:osgi="wwweclipse.org/gemini/blueprint/schema/blueprint"
xmlns:osgix="wwweclipse.org/gemini/blueprint/schema/blueprint-compendium"
xsi:schemaLocation="wwwspringframework.org/schema/aop wwwspringframework.org/schema/aop/spring-aop.xsd
wwwspringframework.org/schema/beans wwwspringframework.org/schema/beans/spring-beans.xsd
wwweclipse.org/gemini/blueprint/schema/blueprint wwweclipse.org/gemini/blueprint/schema/blueprint/gemini-blueprint.xsd
wwweclipse.org/gemini/blueprint/schema/blueprint-compendium wwweclipse.org/gemini/blueprint/schema/blueprint-compendium/gemini-blueprint-compendium.xsd">
<osgi:service ref="logFacade" interface="org.mastah.sdm.logger.facade.ILogFacade" />
<osgi:reference id="logEngine" interface="org.mastah.sdm.logger.engine.ILogEngine" availability="optional" timeout="10" />
</beans>
The proxy are created under JdkDynamicAopProxy, not idea if that could be a problem.
Is there a way to create them using CGLIB instead ?
Thanks.
[Updated on: Tue, 15 May 2012 18:25] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03024 seconds