All Downloads are FREE. Search and download functionalities are using the official Maven repository.

f3.MetroConfigProvider Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
package f3;

import javax.xml.namespace.QName;

import org.fabric3.api.Namespaces;
import org.fabric3.api.annotation.model.Provides;
import org.fabric3.api.model.type.builder.CompositeBuilder;
import org.fabric3.api.model.type.component.Composite;
import org.fabric3.binding.ws.metro.MetroBinding;
import org.fabric3.binding.ws.metro.util.ClassDefinerImpl;
import org.fabric3.binding.ws.metro.util.ClassLoaderUpdaterImpl;
import org.fabric3.spi.model.type.system.SystemComponentBuilder;

/**
 *
 */
public class MetroConfigProvider {
    private static final QName QNAME = new QName(Namespaces.F3, "MetroConfigBinding");

    @Provides
    public static Composite getComposite() {
        CompositeBuilder compositeBuilder = CompositeBuilder.newBuilder(QNAME);
        compositeBuilder.component(SystemComponentBuilder.newBuilder(ClassDefinerImpl.class).build());
        compositeBuilder.component(SystemComponentBuilder.newBuilder(ClassLoaderUpdaterImpl.class).build());
        compositeBuilder.component(SystemComponentBuilder.newBuilder(MetroBinding.class).build());
        return compositeBuilder.build();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy