Examples of createRepository()


Examples of org.apache.maven.archiva.database.RepositoryDAO.createRepository()

        String repoUri = "file://" + StringUtils.replace( repoDir.getAbsolutePath(), "\\", "/" );
       
        // Create it
        ArchivaRepository repo =
            repoDao.createRepository( "testRepo", "Test Repository", repoUri );
        assertNotNull( repo );

        // Set some mandatory values
        repo.getModel().setCreationSource( "Test Case" );
        repo.getModel().setLayoutName( "default" );
View Full Code Here

Examples of org.apache.oodt.cas.catalog.repository.CatalogRepositoryFactory.createRepository()

               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

Examples of org.apache.oodt.cas.catalog.repository.CatalogRepositoryFactory.createRepository()

  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

Examples of org.apache.oodt.cas.resource.jobrepo.JobRepositoryFactory.createRepository()

    JobRepositoryFactory factory = null;

    try {
      clazz = Class.forName(serviceFactory);
      factory = (JobRepositoryFactory) clazz.newInstance();
      return factory.createRepository();
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      LOG.log(Level.WARNING,
          "ClassNotFoundException when loading job repo factory class "
              + serviceFactory + " Message: " + e.getMessage());
View Full Code Here

Examples of org.apache.oodt.cas.resource.jobrepo.JobRepositoryFactory.createRepository()

    JobRepositoryFactory factory = null;

    try {
      clazz = Class.forName(serviceFactory);
      factory = (JobRepositoryFactory) clazz.newInstance();
      return factory.createRepository();
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      LOG.log(Level.WARNING,
          "ClassNotFoundException when loading job repo factory class "
              + serviceFactory + " Message: " + e.getMessage());
View Full Code Here

Examples of org.apache.oodt.cas.resource.jobrepo.JobRepositoryFactory.createRepository()

    JobRepositoryFactory factory = null;

    try {
      clazz = Class.forName(serviceFactory);
      factory = (JobRepositoryFactory) clazz.newInstance();
      return factory.createRepository();
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
      LOG.log(Level.WARNING,
          "ClassNotFoundException when loading job repo factory class "
              + serviceFactory + " Message: " + e.getMessage());
View Full Code Here

Examples of org.apache.oodt.cas.workflow.repository.WorkflowRepositoryFactory.createRepository()

        try {
            repositoryFactoryClass = Class.forName(repositoryClassStr);
            repoFactory = (WorkflowRepositoryFactory) repositoryFactoryClass
                    .newInstance();
            repo = repoFactory.createRepository();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
            throw new Exception(
                    "Unable to load workflow repository factory class "
                            + repositoryClassStr);
View Full Code Here

Examples of org.axonframework.commandhandling.disruptor.DisruptorCommandBus.createRepository()

        // we use default settings for the disruptor command bus
        DisruptorCommandBus commandBus = new DisruptorCommandBus(eventStore, eventBus);

        // now, we obtain a repository from the command bus
        Repository<ToDoItem> repository = commandBus.createRepository(new GenericAggregateFactory<ToDoItem>(ToDoItem.class));

        // we use the repository to register the command handler
        AggregateAnnotationCommandHandler.subscribe(ToDoItem.class, repository, commandBus);

        // the CommandGateway provides a friendlier API to send commands
View Full Code Here

Examples of org.exoplatform.services.jcr.RepositoryService.createRepository()

   {
      // create repository
      RepositoryService service = (RepositoryService)container.getComponentInstanceOfType(RepositoryService.class);
      String dsName = helper.createDatasource();
      RepositoryEntry repoEntry = helper.createRepositoryEntry(false, null, dsName);
      service.createRepository(repoEntry);

      ManageableRepository repository = service.getRepository(repoEntry.getName());

      WorkspaceEntry wsEntry = helper.createWorkspaceEntry(false, dsName);
      helper.addWorkspace(repository, wsEntry);
View Full Code Here

Examples of org.exoplatform.services.jcr.RepositoryService.createRepository()

   {
      // create repository
      RepositoryService service = (RepositoryService)container.getComponentInstanceOfType(RepositoryService.class);
      String dsName = helper.createDatasource();
      RepositoryEntry repoEntry = helper.createRepositoryEntry(false, null, dsName);
      service.createRepository(repoEntry);

      ManageableRepository repository = service.getRepository(repoEntry.getName());

      WorkspaceEntry wsEntry = helper.createWorkspaceEntry(false, dsName);
      helper.addWorkspace(repository, wsEntry);
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.