Examples of ContextManager


Examples of com.arjuna.ats.internal.jts.context.ContextManager

    if (jtsLogger.logger.isDebugEnabled())
    {
      jtsLogger.logger.debug(DebugLevel.CONSTRUCTORS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "CurrentImple::CurrentImple ()");
    }

    _theManager = new ContextManager();
  }
View Full Code Here

Examples of com.arjuna.mw.wsas.context.ContextManager

         
          _context = _doc.createElement(_contextName);
   
          if (addBasicContext(_context))
          {
            ContextManager cxman = new ContextManager();
            Context[] contexts = cxman.contexts();
       
            org.w3c.dom.Element root = _doc.createElement(_hlsContext);
         
            if (contexts != null)
            {
View Full Code Here

Examples of com.espertech.esper.core.context.mgr.ContextManager

        Collection<Integer> agentInstanceIds;
        if (selector == null || selector instanceof ContextPartitionSelectorAll) {
            agentInstanceIds = processor.getProcessorInstancesAll();
        }
        else {
            ContextManager contextManager = contextManagementService.getContextManager(contextName);
            if (contextManager == null) {
                throw new EPException("Context by name '" + contextName + "' could not be found");
            }
            agentInstanceIds = contextManager.getAgentInstanceIds(selector);
        }
        return agentInstanceIds;
    }
View Full Code Here

Examples of com.ibm.ws.security.core.ContextManager

        {
            String password = extractPassword(credentials);

            if (password != null)
            {
                ContextManager contextManager = ContextManagerFactory.getInstance();

                Subject subject =
                    contextManager.login(contextManager.getDefaultRealm(),
                            username, password);

                if (subject != null)
                {
                    //setting the caller subject really doesn't apply for long
                    //it appears to be removed later as each call to
                    //ContextManagerFactory.getInstance()
                    //returns a new instance and we cannot get the real context
                    //and assign values that will be re-used.
                    //this also means that the HttpServletRequest will not have the
                    //information that we've assigned, hence we store this contextManager
                    //in the Principal for later use

                    contextManager.setCallerSubject(subject);
                    principal = new WSLCPrincipal(username, contextManager, subject);
                }
            }
        }
        catch (WSLoginFailedException wsLoginFailedException)
View Full Code Here

Examples of com.tacitknowledge.flip.context.ContextManager

     * @param environment {@link Environment} entity that contains required information
     *      for {@link ContextManager} and {@link PropertyManager} creation.
     */
    public FeatureServiceImpl(final Environment environment)
    {
        contextManager = new ContextManager(environment);
        propertyManager = new PropertyManager(environment);
    }
View Full Code Here

Examples of com.tacitknowledge.flip.context.ContextManager

   
    @Before
    public void setUp() {
        environment = new Environment();
        environment.getContextProviders().add(new TestContextProvider());
        contextManager = new ContextManager(environment);
    }
View Full Code Here

Examples of com.tacitknowledge.flip.context.ContextManager

    }
   
    @Test
    public void testGetValueByPriorityFromGlobalContext() {
        environment.getContextProviders().add(new Test1ContextProvider());
        contextManager = new ContextManager(environment);
       
        assertEquals("someValue", contextManager.getContext(ContextMap.GLOBAL).get("value"));
    }
View Full Code Here

Examples of com.tacitknowledge.flip.context.ContextManager

    }
   
    @Test
    public void testGetValueByPriorityFromGlobalContextAndHasOnlyInSecondContext() {
        environment.getContextProviders().add(new Test1ContextProvider());
        contextManager = new ContextManager(environment);
       
        assertEquals("second-value", contextManager.getContext(ContextMap.GLOBAL).get("secondValue"));
    }
View Full Code Here

Examples of com.tacitknowledge.flip.context.ContextManager

    }
   
    @Test(expected=UnknownContextPropertyException.class)
    public void testGetValueByPriorityFromGlobalContextAndThereIsNoSuchField() {
        environment.getContextProviders().add(new Test1ContextProvider());
        contextManager = new ContextManager(environment);
       
        contextManager.getContext(ContextMap.GLOBAL).get("secondValue1");
    }
View Full Code Here

Examples of it.eng.spagobi.container.ContextManager

      SourceBean response) throws EMFUserError {
   
    logger.debug("IN");
   
    SessionContainer session = requestContainer.getSessionContainer();
    ContextManager contextManager = new ContextManager(new SpagoBISessionContainer(session),
        new LightNavigatorContextRetrieverStrategy(requestContainer.getServiceRequest()));
   
    if (obj == null) {
      logger.error("The input object is null");
      throw new EMFUserError(EMFErrorSeverity.ERROR, "100", messageBundle);
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.