Examples of DeploymentImpl


Examples of org.jboss.weld.integration.deployer.env.bda.DeploymentImpl

      return bda.getBeanClasses();
   }

   private Deployment initializeDeploymentBean(DeploymentUnit unit)
   {
      DeploymentImpl deployment = (DeploymentImpl) getBean(DeployersUtils.getDeploymentBeanName(unit));
      deployment.initialize(bootstrap);
      return deployment;
   }
View Full Code Here

Examples of org.jboss.weld.integration.deployer.env.bda.DeploymentImpl

      return deployment;
   }
  
   private Deployment initializeDeploymentBean()
   {
      DeploymentImpl deployment = (DeploymentImpl) getBean(Deployment.class);
      deployment.initialize(bootstrap);
      return deployment;
   }
View Full Code Here

Examples of org.jbpm.pvm.internal.repository.DeploymentImpl

    return task;
  }

  public static DeploymentRef adoptDeployment(Deployment dpl)
  {
    DeploymentImpl d0 = (DeploymentImpl)dpl;
    DeploymentRef dRef = new DeploymentRef(
        dpl.getId(), d0.isSuspended()
    );

    String name = d0.getName();
    dRef.getResourceNames().addAll(d0.getResourceNames());

    // strip path info
    if(name.indexOf("/")!=-1)
    {
      name = name.substring(name.lastIndexOf("/")+1, name.length());
    }

    dRef.setName(name);
    dRef.setTimestamp(d0.getTimestamp());

    return dRef;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.repository.DeploymentImpl

  }

  public Object execute(Environment environment) throws Exception {
    RepositorySession repositorySession = environment.get(RepositorySession.class);
   
    DeploymentImpl deployment = (DeploymentImpl) repositorySession.getDeployment(deploymentId);
    if (deployment==null) {
      throw new JbpmException("deployment "+deploymentId+" doesn't exist");
    }
   
    deployment.suspend();
   
    // removing deployment from the cache
    // next time it's used, it will be redeployed
    // at that time, the suspended property will be propagated to the
    // process definitions
View Full Code Here

Examples of org.jbpm.pvm.internal.repository.DeploymentImpl

    this.deploymentId = deploymentId;
  }

  public Object execute(Environment environment) throws Exception {
    RepositorySession repositorySession = environment.get(RepositorySession.class);
    DeploymentImpl deployment = (DeploymentImpl) repositorySession.getDeployment(deploymentId);
    deployment.resume();
    return null;
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.repository.DeploymentImpl

        }
      }
    }
   
    Session session = environment.get(Session.class);
    DeploymentImpl deployment = (DeploymentImpl) session.load(DeploymentImpl.class, Long.parseLong(deploymentId));
    log.debug("deleting deployment "+deploymentId);
    session.delete(deployment);
   
    RepositoryCache repositoryCache = environment.get(RepositoryCache.class);
    repositoryCache.set(deploymentId, null);
View Full Code Here

Examples of org.jbpm.pvm.internal.repository.DeploymentImpl

                .add(Restrictions.eq("key", DeploymentImpl.KEY_PROCESS_DEFINITION_ID))
                .list();

            for (DeploymentProperty deploymentProperty : deploymentProperties) {
              String objectName = deploymentProperty.getObjectName();
              DeploymentImpl deployment = deploymentProperty.getDeployment();
              deployment.setProcessLanguageId(objectName, "jpdl-4.0");
            }
            return null;
          }
        });
      }
View Full Code Here

Examples of org.jbpm.pvm.internal.repository.DeploymentImpl

        }
      }
    }
   
    Session session = environment.get(Session.class);
    DeploymentImpl deployment = (DeploymentImpl) session.load(DeploymentImpl.class, Long.parseLong(deploymentId));
    log.debug("deleting deployment "+deploymentId);
    session.delete(deployment);
   
    RepositoryCache repositoryCache = environment.get(RepositoryCache.class);
    repositoryCache.remove(deploymentId);
View Full Code Here

Examples of org.jbpm.pvm.internal.repository.DeploymentImpl

    this.deploymentId = deploymentId;
  }

  public Set<String> execute(Environment environment) throws Exception {
    RepositorySession repositorySession = environment.get(RepositorySession.class);
    DeploymentImpl depImpl = repositorySession.getDeployment(deploymentId);
    return depImpl.getResourceNames();
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.repository.DeploymentImpl

  }

  public Object execute(Environment environment) throws Exception {
    RepositorySession repositorySession = environment.get(RepositorySession.class);
   
    DeploymentImpl deployment = (DeploymentImpl) repositorySession.getDeployment(deploymentId);
    if (deployment==null) {
      throw new JbpmException("deployment "+deploymentId+" doesn't exist");
    }
   
    deployment.suspend();
   
    // removing deployment from the cache
    // next time it's used, it will be redeployed
    // at that time, the suspended property will be propagated to the
    // process definitions
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.