Package org.apache.oodt.cas.catalog.repository

Examples of org.apache.oodt.cas.catalog.repository.CatalogRepositoryFactory


         FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(
               new String[] { this.beanRepo }, false);
         appContext.setClassLoader(new Serializer().getClassLoader());
         appContext.refresh();
         CatalogRepositoryFactory factory = (CatalogRepositoryFactory) appContext
               .getBean(this.catalogRepositoryId, CatalogRepositoryFactory.class);
         CatalogRepository catalogRepository = factory.createRepository();
         Set<Catalog> catalogs = catalogRepository.deserializeAllCatalogs();
         printer.println("Deserialized Catalogs: " + catalogs.toString());
         for (Catalog catalog : catalogs) {
            printer.println("Adding Catalog: " + catalog);
            getClient().addCatalog(catalog);
View Full Code Here


  @Override
  public void performAction(CatalogServiceClient csClient) throws Exception {
    FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(new String[] { this.beanRepo }, false);
    appContext.setClassLoader(new Serializer().getClassLoader());
    appContext.refresh();
    CatalogRepositoryFactory factory = (CatalogRepositoryFactory) appContext.getBean(this.beanId, CatalogRepositoryFactory.class);
    CatalogRepository catalogRepository = factory.createRepository();
    Set<Catalog> catalogs = catalogRepository.deserializeAllCatalogs();
    System.out.println("Deserialized Catalogs: " + catalogs.toString());
    for (Catalog catalog : catalogs) {
      try {
        System.out.println("Adding Catalog: " + catalog);
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.catalog.repository.CatalogRepositoryFactory

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.