Package org.jbpm.pvm.internal.repository

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


   
    // 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
    RepositoryCache repositoryCache = environment.get(RepositoryCache.class);
    repositoryCache.remove(deploymentId);
   
    return null;
  }
View Full Code Here


    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);

    return null;
  }
View Full Code Here

    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);

    return null;
  }
View Full Code Here

   
    // 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
    RepositoryCache repositoryCache = environment.get(RepositoryCache.class);
    repositoryCache.remove(deploymentId);
   
    return null;
  }
View Full Code Here

    }

    Thread currentThread = Thread.currentThread();
    ClassLoader original = currentThread.getContextClassLoader();

    RepositoryCache repositoryCache = EnvironmentImpl.getFromCurrent(RepositoryCache.class);
    DeploymentClassLoader deploymentClassLoader = repositoryCache.getDeploymentClassLoader(deploymentId, original);
    if (deploymentClassLoader==null) {
      deploymentClassLoader = new DeploymentClassLoader(original, deploymentId);
      repositoryCache.setDeploymentClassLoader(deploymentId, original, deploymentClassLoader);
    }
   
    currentThread.setContextClassLoader(deploymentClassLoader);
   
    return original;
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.repository.RepositoryCache

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.