Examples of SessionInfo


Examples of org.drools.persistence.info.SessionInfo

        }
        this.env = env;

        checkEnvironment( this.env );

        this.sessionInfo = new SessionInfo();

        initTransactionManager( this.env );

        // create session but bypass command service
        this.ksession = kbase.newStatefulKnowledgeSession( conf,
View Full Code Here

Examples of org.drools.persistence.session.SessionInfo

      Environment env) {
    if (conf == null) {
      conf = new SessionConfiguration();
    }
    checkEnvironment(env);
    this.sessionInfo = new SessionInfo();

    ReteooStatefulSession session = (ReteooStatefulSession)
        ((KnowledgeBaseImpl) kbase).ruleBase.newStatefulSession((SessionConfiguration) conf, this.env);
    this.ksession = new StatefulKnowledgeSessionImpl(session, kbase);
View Full Code Here

Examples of org.jacoco.core.data.SessionInfo

  public final void collect(final IExecutionDataVisitor executionDataVisitor,
      final ISessionInfoVisitor sessionInfoVisitor, final boolean reset) {
    synchronized (store) {
      if (sessionInfoVisitor != null) {
        final SessionInfo info = new SessionInfo(sessionId,
            startTimeStamp, System.currentTimeMillis());
        sessionInfoVisitor.visitSessionInfo(info);
      }
      store.accept(executionDataVisitor);
      if (reset) {
View Full Code Here

Examples of org.jrest4guice.persistence.hibernate.SessionInfo

  @Override
  public Object invoke(MethodInvocation methodInvocation) throws Throwable {
    log.debug("[HibernateLocalTransactionInterceptor]进入=》"+methodInvocation.getMethod().getName());

    SessionFactoryHolder sessionFH = GuiceContext.getInstance().getBean(SessionFactoryHolder.class);
    SessionInfo session = sessionFH.getSessionInfo();
   
    Method method = methodInvocation.getMethod();
    Transactional transactional = method.getAnnotation(Transactional.class);
    if(transactional == null){
      transactional = method.getDeclaringClass().getAnnotation(Transactional.class);
    }

    TransactionalType type = transactional.type();
   
    final Transaction transaction = session.getSession().getTransaction();

    if(type != TransactionalType.READOLNY){
      session.setNeed2ProcessTransaction(true);
    }
   
    if(transaction.isActive()){
      return methodInvocation.proceed();
    }
View Full Code Here

Examples of org.jrest4guice.persistence.hibernate.SessionInfo

        EntityManagerInfo entityManager = emfH.getEntityManagerInfo();
        jpaTS = entityManager.getEntityManager().getTransaction();
        need2ProcessTransaction = entityManager.isNeed2ProcessTransaction();
      }else if(PersistenceGuiceContext.getInstance().isUseHibernate()){
        SessionFactoryHolder sessionFH = GuiceContext.getInstance().getBean(SessionFactoryHolder.class);
        SessionInfo session = sessionFH.getSessionInfo();
        hbTS = session.getSession().getTransaction();
        need2ProcessTransaction = session.isNeed2ProcessTransaction() && !hbTS.wasCommitted();
      }

      if(need2ProcessTransaction){
        if(hbTS != null)
          hbTS.commit();
View Full Code Here

Examples of org.olat.core.util.SessionInfo

                // IMManager...
                // invalidation triggers dispose of controller chain and closes
                // IM
                // and removes IM client
              try {
                SessionInfo sessionInfo = session.getSessionInfo();
                if (sessionInfo!=null) {
                  HttpSession session2 = sessionInfo.getSession();
                  if (session2!=null) {
                    session2.invalidate();
                  }
                }
              } catch (IllegalStateException ise) {
View Full Code Here

Examples of org.rstudio.studio.client.workbench.model.SessionInfo

      });
       
      eventBus.addHandler(SessionInitEvent.TYPE, new SessionInitHandler() {
         public void onSessionInit(SessionInitEvent sie)
         {
            SessionInfo sessionInfo = session.getSessionInfo();

            // remove devtools commands if it isn't installed
            if (!sessionInfo.isDevtoolsInstalled())
            {
               commands.devtoolsLoadAll().remove();
            }
           
            // adapt or remove package commands if this isn't a package
            String type = sessionInfo.getBuildToolsType();
            if (!type.equals(SessionInfo.BUILD_TOOLS_PACKAGE))
            {
               commands.devtoolsLoadAll().remove();
               commands.buildSourcePackage().remove();
               commands.buildBinaryPackage().remove();
               commands.roxygenizePackage().remove();
               commands.checkPackage().remove();
               commands.testPackage().remove();
               commands.buildAll().setImageResource(
                                 BuildPaneResources.INSTANCE.iconBuild());
               commands.buildAll().setMenuLabel("_Build All");
               commands.buildAll().setButtonLabel("Build All");
               commands.buildAll().setDesc("Build all");
              
            }
           
            // remove makefile commands if this isn't a makefile
            if (type.equals(SessionInfo.BUILD_TOOLS_CUSTOM))
            {
               commands.rebuildAll().remove();
            }
           
            if (!type.equals(SessionInfo.BUILD_TOOLS_MAKEFILE))
            {
               commands.cleanAll().remove();
            }
           
            // remove all other commands if there are no build tools
            if (type.equals(SessionInfo.BUILD_TOOLS_NONE))
            {
               commands.buildAll().remove();
               commands.rebuildAll().remove();
               commands.cleanAll().remove();
               commands.stopBuild().remove();
               commands.activateBuild().remove();
            }
           
            // initialize from build state if necessary
            BuildState buildState = sessionInfo.getBuildState();
            if (buildState != null)
               shim.initialize(buildState);          
         }
      });
     
View Full Code Here

Examples of org.uberfire.rpc.SessionInfo

            final InputStream inputStream = ioService.newInputStream( Paths.convert( path ),
                                                                      StandardOpenOption.READ );

            //Signal opening to interested parties
            resourceOpenedEvent.fire( new ResourceOpenedEvent( path,
                                                               new SessionInfo() {
                                                                   @Override
                                                                   public String getId() {
                                                                       return sessionId;
                                                                   }
View Full Code Here

Examples of org.xmlBlaster.authentication.SessionInfo

      String queryStr = "/qos";
      String qos = "<qos/>";
     
      MsgUnit msgUnit = new MsgUnit("<key oid='Hello'/>", content, qos);
      msgUnit.getQosData().setRcvTimestamp(new Timestamp());
      SessionInfo sessionInfo = null;

      PluginInfo info = new PluginInfo(glob, null, "XPathFilter", "1.0");
      info.getParameters().put(XPathFilter.MATCH_AGAINST_QOS, ""+true);
      filter.init(glob, info);
     
View Full Code Here

Examples of org.xmlBlaster.authentication.SessionInfo

         "</xsl:stylesheet>");
     
      try {
         MsgUnit msgUnit = new MsgUnit("<key oid='Hello'/>", content, qos);
         msgUnit.getQosData().setRcvTimestamp(new Timestamp());
         SessionInfo sessionInfo = null;
  
         PluginInfo info = new PluginInfo(glob, null, "XPathFilter", "1.0");
         info.getParameters().put(XPathFilter.XSL_CONTENT_TRANSFORMER_FILE_NAME, xslFile);
         filter.init(glob, info);
        
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.