package org.ow2.chameleon.fuchsia.fool;

import org.ow2.chameleon.fuchsia.core.component.AbstractImporterComponent;
import org.ow2.chameleon.fuchsia.core.declaration.ImportDeclaration;

import java.util.List;


public class FoolImporter extends AbstractImporterComponent {
    @Override
    protected void createProxy(ImportDeclaration importDeclaration) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    @Override
    protected void destroyProxy(ImportDeclaration importDeclaration) {
        //To change body of implemented methods use File | Settings | File Templates.
    }

    public List<String> getConfigPrefix() {
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
}

@@ -49,139 +49,652 @@
 org.
-ow2.chameleon.fuchsia.core.component.AbstractImporterComponent;%0Aimport org.ow2.chameleon.fuchsia.core.declaration.ImportDeclaration
+apache.felix.ipojo.annotations.Component;%0Aimport org.apache.felix.ipojo.annotations.Instantiate;%0Aimport org.apache.felix.ipojo.annotations.Invalidate;%0Aimport org.apache.felix.ipojo.annotations.Provides;%0Aimport org.apache.felix.ipojo.annotations.ServiceProperty;%0Aimport org.apache.felix.ipojo.annotations.Validate;%0Aimport org.ow2.chameleon.fuchsia.core.component.AbstractImporterComponent;%0Aimport org.ow2.chameleon.fuchsia.core.component.ImporterService;%0Aimport org.ow2.chameleon.fuchsia.core.declaration.ImportDeclaration;%0Aimport org.ow2.chameleon.fuchsia.core.util.BadImportRegistration;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory
 ;%0A%0Ai
@@ -713,77 +713,623 @@
 til.
+Array
 List;%0A
-%0A%0Apublic class FoolImporter extends AbstractImporterComponent %7B
+import java.util.List;%0A%0A@Component(name = %22Fuchsia-FoolImporter-Factory%22)%0A@Provides(specifications = ImporterService.class)%0A@Instantiate(name = %22Fuchsia-FoolImporter%22)%0Apublic class FoolImporter extends AbstractImporterComponent %7B%0A    /**%0A     * logger%0A     */%0A    private final Logger logger = LoggerFactory.getLogger(this.getClass());%0A%0A%0A    @ServiceProperty(name = %22target%22, value = %22(fool-number=1)%22)%0A    private String filter;%0A%0A    @Override%0A    @Validate%0A    protected void stop() %7B%0A        super.stop();%0A    %7D%0A%0A    @Override%0A    @Invalidate%0A    protected void start() %7B%0A        super.start();%0A    %7D%0A
 %0A   
@@ -1421,85 +1421,77 @@
     
-//To change body of implemented methods use File %7C Settings %7C File Templates.
+logger.debug(%22FoolImporter create a proxy for %22 + importDeclaration);
 %0A   
@@ -1591,236 +1591,220 @@
     
-//To change body of implemented methods use File %7C Settings %7C File Templates.%0A    %7D%0A%0A    public List%3CString%3E getConfigPrefix() %7B%0A        return null;  //To change body of implemented methods use File %7C Settings %7C File Templates.
+logger.debug(%22FoolImporter destroy a proxy for %22 + importDeclaration);%0A    %7D%0A%0A    public List%3CString%3E getConfigPrefix() %7B%0A        List%3CString%3E l = new ArrayList%3CString%3E();%0A        l.add(%22fool%22);%0A        return l;
 %0A   

Complete and enable FoolImporter component