Examples of SpringContext


Examples of org.jbpm.pvm.internal.env.SpringContext

      PvmEnvironment environment = new PvmEnvironment(this);

      if (log.isTraceEnabled())
        log.trace("opening jbpm-spring" + environment);

      environment.setContext(new SpringContext(applicationContext));

      installAuthenticatedUserId(environment);
      installProcessEngineContext(environment);
      installTransactionContext(environment);
View Full Code Here

Examples of org.jbpm.pvm.internal.env.SpringContext

        if (classLoader != null) {
            environment.setClassLoader(classLoader);
        }

        // add the process-engine context
        environment.setContext(new SpringContext(applicationContext));
        environment.setContext(processEngineWireContext);

        // add the transaction context
        WireDefinition usedWireDefinition = transactionWireDefinition;
        if (txWireObjects != null) {
View Full Code Here

Examples of org.jbpm.pvm.internal.env.SpringContext

    PvmEnvironment environment = new PvmEnvironment(this);

    if (log.isTraceEnabled())
      log.trace("opening jbpm-spring" + environment);

    environment.setContext(new SpringContext(applicationContext));

    installAuthenticatedUserId(environment);
    installProcessEngineContext(environment);
    installTransactionContext(environment);
View Full Code Here

Examples of org.ngrinder.infra.spring.SpringContext

  @Before(EXECUTION_SAVE)
  public void beforeSave(JoinPoint joinPoint) {
    for (Object object : joinPoint.getArgs()) {
      // If the object is base model and it's on the servlet
      // context, It's not executed by task scheduling.
      SpringContext springContext = getSpringContext();
      if (object instanceof BaseModel
          && (springContext.isServletRequestContext() || springContext.isUnitTestContext())) {
        BaseModel<?> model = (BaseModel<?>) object;
        Date lastModifiedDate = new Date();
        model.setLastModifiedDate(lastModifiedDate);
        User currentUser = userContext.getCurrentUser();
        model.setLastModifiedUser(userRepository.findOne(currentUser.getId()));
View Full Code Here

Examples of org.restlet.ext.spring.SpringContext

    }

    public Restlet createRoot() {
        Router router = new Router();

        SpringContext springContext = new SpringContext(getContext());

        springContext.getXmlConfigRefs().add("war://WEB-INF/classes/applicationContext.xml");
        //       router.setRequiredScore(0);
        //       router.attach("/roles", new UserRestlet("Role Management Page"));
        router.attach("/user/{name}", new UserRestlet(null));
        router.attach("/dummy", new DummyRestlet(springContext));
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.