Examples of createService()


Examples of org.jboss.seam.security.external.jaxb.xrds.ObjectFactory.createService()

            Type type = objectFactory.createType();
            type.setValue(DiscoveryInformation.OPENID2);
            URIPriorityAppendPattern uri = objectFactory.createURIPriorityAppendPattern();
            uri.setValue(getServiceURL(OpenIdService.OPEN_ID_SERVICE));

            Service service = objectFactory.createService();
            service.getType().add(type);
            service.getURI().add(uri);

            LocalID localId = new LocalID();
            localId.setValue(opLocalIdentifier);
View Full Code Here

Examples of org.jboss.seam.security.external.jaxb.xrds.ObjectFactory.createService()

            Type type = objectFactory.createType();
            type.setValue(DiscoveryInformation.OPENID2_RP);
            URIPriorityAppendPattern uri = objectFactory.createURIPriorityAppendPattern();
            uri.setValue(getServiceURL(OpenIdService.OPEN_ID_SERVICE));

            Service service = objectFactory.createService();
            service.getType().add(type);
            service.getURI().add(uri);

            xrd.getService().add(service);
View Full Code Here

Examples of org.jboss.system.ServiceFactory.createService()

      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      if (serviceFactory != null && serviceFactory.length() > 0)
      {
         Class clazz = loader.loadClass(serviceFactory);
         ServiceFactory factory = (ServiceFactory) clazz.newInstance();
         service = factory.createService(server, objectName);
      }
      else
      {
         MBeanInfo info = server.getMBeanInfo(objectName);
         MBeanOperationInfo[] opInfo = info.getOperations();
View Full Code Here

Examples of org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService()

      URL wsdlLocation = new URL("http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?wsdl");
      QName serviceName = new QName("http://endpoint.webservices.jms.example.jboss.org/", "JMSSampleService");

      File fileMapping = new File("./output/client/jaxrpc-mapping.xml");

      ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, fileMapping.toURL());

      JMSSample proxy = (JMSSample)service.getPort(JMSSample.class);

      proxy.sendMessage(getDestinationJNDIName(), MESSAGE_TEXT);
   }
View Full Code Here

Examples of org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService()

      URL wsdlLocation = new URL("http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?wsdl");
      QName serviceName = new QName("http://endpoint.webservices.jms.example.jboss.org/", "JMSSampleService");

      File fileMapping = new File("./output/client/jaxrpc-mapping.xml");

      ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, fileMapping.toURL());

      JMSSample proxy = (JMSSample)service.getPort(JMSSample.class);

      proxy.sendMessage(getDestinationJNDIName(), MESSAGE_TEXT);
   }
View Full Code Here

Examples of org.locationtech.udig.catalog.IServiceFactory.createService()

      = CatalogPlugin.getDefault().getServiceFactory();
   
    HashMap params = new HashMap();
    params.put("dummy", DummyService.url);
   
    List<IService> services = sFactory.createService(params);
    service = services.get(0);
   
    CreateMapCommand cmCommand =
      new CreateMapCommand(null,(List<IGeoResource>) service.resources(null),null);
    ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject()
View Full Code Here

Examples of org.locationtech.udig.catalog.IServiceFactory.createService()

  public static void addFileToCatalogLong() throws Exception {
    File file = new File( "C:\\data\\cities.shp" );
    URL url = file.toURI().toURL();
   
    IServiceFactory serviceFactory = CatalogPlugin.getDefault().getServiceFactory();
    List<IService> created = serviceFactory.createService( url );
   
    IRepository local = CatalogPlugin.getDefault().getLocal();
    for( IService service : created ){
        IService registered = local.add(service);
        //...
View Full Code Here

Examples of org.locationtech.udig.catalog.IServiceFactory.createService()

        //get the service factory
        IServiceFactory factory = CatalogPlugin.getDefault().getServiceFactory();
       
        //create the service
       
        List<IService> services = factory.createService( fileUrl );
       
        //ensure the service was created
        assertNotNull(services);
        assertEquals(1, services.size() );
       
View Full Code Here

Examples of org.locationtech.udig.catalog.IServiceFactory.createService()

     * @throws MalformedURLException
     */
  private void addToCatalog(File destination) throws MalformedURLException {
    IServiceFactory serviceFactory = CatalogPlugin.getDefault().getServiceFactory();
    URL url = DataUtilities.fileToURL( destination );
        List<IService> services = serviceFactory.createService(url);
    ICatalog localCatalog = CatalogPlugin.getDefault().getLocalCatalog();;
    for (IService service : services) {
      localCatalog.add(service);
    }
  }
View Full Code Here

Examples of org.locationtech.udig.catalog.IServiceFactory.createService()

        // get the service factory
        IServiceFactory factory = CatalogPlugin.getDefault().getServiceFactory();

        // create the service
        URL url = new URL( getCapabilities );
        List<IService> services = factory.createService(url);

        // ensure the service was created
        assertNotNull(services);
        assertEquals(1, services.size());
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.