Examples of createService()


Examples of org.apache.tuscany.sca.core.assembly.RuntimeAssemblyFactory.createService()

        String serviceName = epr.getReference().getName() + "_asyncCallback";
        service.setName(serviceName);
        // MJE 06/12/2010 - fixup for JMS binding code which looks at the implementation service
        // as well as the component service...
        // Create a pseudo implementation service...
        Service implService = assemblyFactory.createService();
        implService.setName(serviceName);
        implService.setInterfaceContract(interfaceContract);
        service.setService(implService);
        //
        endpoint.setService(service);
View Full Code Here

Examples of org.apache.tuscany.sca.extension.helper.BindingActivator.createService()

            } else {
                realBinding = b;
            }
            final BindingActivator bindingActivator = bindingActivatorMap.get(realBinding.getClass());
            return new ServiceBindingProvider() {
                ComponentLifecycle listener = bindingActivator.createService(rc, rcs, b, realBinding);

                public InterfaceContract getBindingInterfaceContract() {
                    return null;
                }
               
View Full Code Here

Examples of org.apache.wink.common.model.app.ObjectFactory.createService()

                        MultivaluedMap<String, Object> httpHeaders,
                        OutputStream entityStream) throws IOException, WebApplicationException {

        try {
            ObjectFactory objectFactory = new ObjectFactory();
            JAXBElement<AppService> sd = objectFactory.createService(t);
            Marshaller marshaller = AppService.getMarshaller();
            marshaller.setProperty(Marshaller.JAXB_ENCODING, ProviderUtils.getCharset(mediaType));
            AtomJAXBUtils.marshal(marshaller, sd, entityStream);
        } catch (PropertyException e) {
            throw new WebApplicationException(e);
View Full Code Here

Examples of org.apache.ws.scout.Creator.createService()

            Finder finder = new Finder(bqm, uddiversion);
           
            Collection<Organization> orgs = new ArrayList<Organization>();
            Organization organization = creator.createOrganization(this.getClass().getName());
//          Add a Service
            Service service = creator.createService(this.getClass().getName());
            ServiceBinding serviceBinding = creator.createServiceBinding();
            service.addServiceBinding(serviceBinding);
            organization.addService(service);
            //Add a classification
            ClassificationScheme cs = finder.findClassificationSchemeByName(this.getClass().getName());
View Full Code Here

Examples of org.apache.xmlbeans.impl.jam.JamServiceFactory.createService()

        // create service, get classes, return compiler
        JamService service;
        try
        {
            service = jf.createService(params);
        }
        catch (IOException ioe)
        {
            error("Error when accessing .java files.", null);
            return null;
View Full Code Here

Examples of org.cloudfoundry.runtime.service.document.MongoServiceCreator.createService()

    }

    @Bean
    public MongoDbFactory mongoDbFactory() {
        MongoServiceCreator mongoServiceCreator = new MongoServiceCreator();
        return mongoServiceCreator.createService(mongoServiceInfo());
    }

    @Bean
    public DataSource dataSource() {
        RdbmsServiceInfo rdbmsServiceInfo = cloudEnvironment().getServiceInfosRdbmsServiceInfo.class).iterator().next();
View Full Code Here

Examples of org.cloudfoundry.runtime.service.relational.RdbmsServiceCreator.createService()

    @Bean
    public DataSource dataSource() {
        RdbmsServiceInfo rdbmsServiceInfo = cloudEnvironment().getServiceInfosRdbmsServiceInfo.class).iterator().next();
        assert null != rdbmsServiceInfo : "there needs to be at least one MySQL RDBMS bound to this application";
        RdbmsServiceCreator rdbmsServiceCreator = new RdbmsServiceCreator();
        return rdbmsServiceCreator.createService(rdbmsServiceInfo);
    }

    @Bean
    public MongoTemplate mongoTemplate() {
        return new MongoTemplate(mongoDbFactory());
View Full Code Here

Examples of org.codehaus.jam.JamServiceFactory.createService()

        for (int count = 0; count < generationParams.getExtraClasses().size(); ++count) {
            jam_service_parms.includeClass((String)generationParams.getExtraClasses().get(count));
        }

        JamService service = factory.createService(jam_service_parms);
        QName extraSchemaTypeName = null;
        JamClassIterator jClassIter = service.getClasses();
        // all most all the time the ittr will have only one class in it
        while (jClassIter.hasNext()) {
            JClass jclass = (JClass)jClassIter.next();
View Full Code Here

Examples of org.codehaus.jam.JamServiceFactory.createService()

        JClass[] classes = null;
        File propertiesFile = scenariosFile;
        try {
            if (srcDir != null) {
                serviceParams.includeSourcePattern(path2files(srcDir), mIncludes);
                JamService jam = jamServiceFactory.createService(serviceParams);
                classes = jam.getAllClasses();
            }
            else {
                // lets try load the properties file
                classes = loadScenarioClasses();
View Full Code Here

Examples of org.jboss.as.clustering.infinispan.affinity.KeyAffinityServiceFactory.createService()

            public G getKey() {
                return groupConfiguration.getIdentifierFactory().createIdentifier();
            }
        };
        KeyAffinityServiceFactory affinityFactory = configuration.getAffinityFactory();
        final KeyAffinityService<G> groupAffinity = affinityFactory.createService(this.groupCache, groupKeyGenerator);
        this.groupIdentifierFactory = new IdentifierFactory<G>() {
            @Override
            public G createIdentifier() {
                return groupAffinity.getKeyForAddress(address);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.