Examples of createService()


Examples of org.locationtech.udig.catalog.internal.wmt.ww.WWServiceExtension.createService()

        WWServiceExtension serviceExtension = new WWServiceExtension();
       
        URL url = WWControl.class.getResource("DemisWorldMap.xml"); //$NON-NLS-1$
        Map<String, Serializable> params =  serviceExtension.createParams(url);
               
        IService service = serviceExtension.createService(url, params);
       
        return service;
    }
   
    @Override
View Full Code Here

Examples of org.locationtech.udig.catalog.memory.MemoryServiceExtensionImpl.createService()

    public static IService createService(ICatalog catalog) {
      IService service;
      MemoryServiceExtensionImpl ext=new MemoryServiceExtensionImpl();
     
      java.util.Map<String, Serializable> params = ext.createParams(MemoryServiceExtensionImpl.URL);
      service=(MemoryServiceImpl) ext.createService(MemoryServiceExtensionImpl.URL, params);
      catalog.add(service);
      return service;
    }

    /**
 
View Full Code Here

Examples of org.olat.core.service.ServiceCreator.createService()

  /* (non-Javadoc)
   * @see org.olat.core.service.ServiceCreatorFactory#createServiceFor(java.lang.Class)
   */
  public Object createServiceFor(Class serviceInterfaceName) {
    ServiceCreator sc = serviceCreators.get(serviceInterfaceName.getName());
    return sc == null? null: sc.createService();
  }

  /* (non-Javadoc)
   * @see org.olat.core.service.ServiceCreatorFactory#createNonNullServiceFor(java.lang.Class)
   */
 
View Full Code Here

Examples of org.olat.core.service.ServiceCreator.createService()

   * @see org.olat.core.service.ServiceCreatorFactory#createNonNullServiceFor(java.lang.Class)
   */
  public Object createNonNullServiceFor(Class serviceInterfaceName) {
    ServiceCreator sc = serviceCreators.get(serviceInterfaceName.getName());
    if (sc == null) throw new AssertException("service '"+serviceInterfaceName.getName()+"' does not exist!");
    return sc.createService();
  }
 
 
}
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.