Package org.apache.oodt.cas.catalog.util

Examples of org.apache.oodt.cas.catalog.util.Serializer


 
  private static Logger LOG = Logger.getLogger(AbstractCommunicationChannelClient.class.getName());
  protected Serializer serializer;

  public AbstractCommunicationChannelClient() {
    this.serializer = new Serializer(false);
  }
View Full Code Here


  }

  @Override
  public void handleOption(CmdLineOption option, List<String> values) {
    FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(new String[] { this.beanRepo }, false);
    appContext.setClassLoader(new Serializer().getClassLoader());
    appContext.refresh();
    PrintStream ps = new PrintStream(System.out);
        ps.println("ClientFactories:");
        for (String clientId : appContext.getBeanNamesForType(CatalogServiceClientFactory.class)) {
          CatalogServiceClientFactory clientFactory = (CatalogServiceClientFactory) appContext.getBean(clientId, CatalogServiceClientFactory.class);
View Full Code Here

  }

  @Override
  public void handleOption(CmdLineOption option, List<String> values) {
    FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(new String[] { this.beanRepo }, false);
    appContext.setClassLoader(new Serializer().getClassLoader());
    appContext.refresh();
    PrintStream ps = new PrintStream(System.out);
        ps.println("Actions:");
        for (CatalogServiceServerAction action : ((Map<String, CatalogServiceServerAction>) appContext.getBeansOfType(CatalogServiceServerAction.class)).values()) {
            ps.println("  Action:");
View Full Code Here

  protected String beanRepo;
 
  @Override
  public void performAction(CatalogServiceClient csClient) throws Exception {
    FileSystemXmlApplicationContext repoAppContext = new FileSystemXmlApplicationContext(new String[] { this.beanRepo }, false);
    repoAppContext.setClassLoader(new Serializer().getClassLoader());
    repoAppContext.refresh();
    Map<String, Catalog> catalogs = repoAppContext.getBeansOfType(Catalog.class);
    for (Catalog catalog : catalogs.values())
      csClient.addCatalog(catalog);
  }
View Full Code Here

  protected String beanRepo;
 
  @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());
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.catalog.util.Serializer

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.