<blueprint xmlns="h/www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="h/www.w3.org/2001/XMLSchema-instance"
xmlns:context="h/www.springframework.org/schema/context"
xmlns:beans="h/www.springframework.org/schema/beans"
xmlns:compendium="h/www.eclipse.org/gemini/blueprint/schema/blueprint-compendium"
xsi:schemaLocation="h/www.springframework.org/schema/context
h/www.springframework.org/schema/context/spring-context.xsd
h/www.eclipse.org/gemini/blueprint/schema/blueprint-compendium
h/www.eclipse.org/gemini/blueprint/schema/blueprint-compendium/gemini-blueprint-compendium.xsd
h/www.osgi.org/xmlns/blueprint/v1.0.0
h/www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
h/www.springframework.org/schema/beans
h/www.springframework.org/schema/beans/spring-beans.xsd"
default-activation="eager">
<service interface="org.osgi.service.cm.ManagedServiceFactory" ref="myManagedServiceFac">
<service-properties>
<entry key="service.pid" value="de.zivit.ccn.csi.api.factoryConnectionSpec"/>
</service-properties>
</service>
<bean id="myManagedServiceFac" class="de.zivit.ccn.dani.internal.ManagedServiceFrontImplFactory">
<argument ref="bundleContext"/>
<property name="log" ref="osgi.LogService"/>
</bean>
<reference id="osgi.LogService" interface="org.osgi.service.log.LogService"/>
</blueprint>
@Override
public void start(BundleContext context) throws Exception {
ManagedServiceFrontImplFactory msf = new ManagedServiceFrontImplFactory(context);
loggerReference = context.getServiceReference(LogService.class);
LogService logger = (LogService) context.getService(loggerReference);
msf.setLog(logger);
Dictionary<String, Object> props = new Hashtable<String,Object>();
props.put(Constants.SERVICE_PID,"de.zivit.ccn.csi.api.factoryConnectionSpec" );
reg= (ServiceRegistration) context.registerService(ManagedServiceFactory.class.getName(),msf,props);
}