Package org.geotools.gtcatalog

Examples of org.geotools.gtcatalog.Catalog


public class Activator implements BundleActivator {

  public void start(BundleContext context) throws Exception {
    //get a reference to the service factory + catalog
    Catalog catalog = (Catalog) context
      .getService(context.getServiceReference(Catalog.class.getName()));
    ServiceFactory factory = (ServiceFactory)context
      .getService(context.getServiceReference(ServiceFactory.class.getName()));
   
   
View Full Code Here


  public void start(BundleContext context) throws Exception {
    //register the catalog and service factory
    Properties props = new Properties();
    props.put("Language", "English");
   
    Catalog catalog = new SkunkCatalog();
    ServiceFactory factory = new SkunkServiceFactory(catalog);
   
    context.registerService(Catalog.class.getName(),catalog,props);
    context.registerService(ServiceFactory.class.getName(),factory,props);
  }
View Full Code Here

TOP

Related Classes of org.geotools.gtcatalog.Catalog

Copyright © 2018 www.massapicom. 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.