package org.ow2.chameleon.fuchsia.upnp.examples.config;

import org.apache.felix.ipojo.configuration.Configuration;
import org.apache.felix.ipojo.configuration.Instance;
import org.ow2.chameleon.fuchsia.core.FuchsiaConstants;

import static org.apache.felix.ipojo.configuration.Instance.instance;
import static org.ow2.chameleon.fuchsia.core.ImportationLinker.FILTER_IMPORTERSERVICE_PROPERTY;

@Configuration
public class DiscoveryInitializer {

    Instance upnpDiscovery = instance()
            .of("Fuchsia-UPnPDiscovery-Factory")
            .named("Fuchsia-UPnPDiscovery")
            .with(FILTER_IMPORTERSERVICE_PROPERTY).setto("(instance.name=FuchsiaUPnPImporter)")
            .with("target").setto("(id=*)");


}

Add an instance of upnp-discovery in upnp-config bundle
[example] Add an instance of upnp-discovery in upnp-config bundle
