Examples of NewContext()


Examples of ariba.ui.meta.core.ObjectMeta.newContext()

    }

    String detailClassName ()
    {
        ObjectMeta meta = UIMeta.getInstance();
        Context context = meta.newContext();
        context.set(ObjectMeta.KeyClass, _parentObject.getClass().getName());
        context.set(ObjectMeta.KeyField, _detailFieldPath.fieldPathString());
        return (String)context.propertyForKey(ObjectMeta.KeyElementType);
    }
View Full Code Here

Examples of ariba.ui.meta.core.UIMeta.newContext()

        void prepare ()
        {
            UIMeta meta = UIMeta.getInstance();
            if (_modules == null || _ruleSetGeneration < meta.ruleSetGeneration()) {
                Context context = meta.newContext();
                _moduleInfo = meta.computeModuleInfo(context, true);
                _modules = _moduleInfo.modules;
                if (_selectedModule != null)_selectedModule = moduleNamed(_selectedModule.name());
                _ruleSetGeneration = meta.ruleSetGeneration();
            }
View Full Code Here

Examples of ariba.ui.meta.core.UIMeta.newContext()

        public AWResponseGenerating gotoModule (ModuleProperties module, AWRequestContext requestContext)
        {
            selectModule(module);

            UIMeta meta = UIMeta.getInstance();
            Context context = meta.newContext();
            context.push();
            context.set(UIMeta.KeyModule, module.name());
            String pageName = (String)context.propertyForKey(UIMeta.KeyHomePage);
            AWComponent page = requestContext.pageWithName(pageName);
            meta.preparePage(context, page);
View Full Code Here

Examples of ariba.ui.meta.core.UIMeta.newContext()

        public void selectModule (ModuleProperties selectedModule)
        {
            if (_selectedModule == selectedModule) return;
            _selectedModule = selectedModule;
            UIMeta meta = UIMeta.getInstance();
            Context context = meta.newContext();

            context.push();

            assignCurrentModuleContext(context);
View Full Code Here

Examples of ariba.ui.meta.core.UIMeta.newContext()

        public AWResponseGenerating fireAction (ItemProperties action, AWRequestContext requestContext)
        {
            // ToDo -- figure out how to fire Action
            UIMeta meta = UIMeta.getInstance();
            UIMeta.UIContext context = (UIMeta.UIContext)meta.newContext();
            context.setRequestContext(requestContext);
            context.push();
            context.set(UIMeta.KeyModule, _selectedModule.name());
            String className = (String)action.properties().get(UIMeta.KeyClass);
            if (className != null) context.set(UIMeta.KeyClass, className);
View Full Code Here

Examples of ariba.ui.meta.core.UIMeta.newContext()

        public AWResponseGenerating redirectForPage (AWComponent pageComponent)
        {
            AWComponent page = pageComponent;
            checkSelectedModule(pageComponent);
            UIMeta meta = UIMeta.getInstance();
            Context context = meta.newContext();
            context.push();
            context.set(UIMeta.KeyModule, _selectedModule.name());
            String pageName = (String)context.propertyForKey(UIMeta.KeyHomePage);
            if (pageName != null && !pageName.equals(pageComponent.componentDefinition().componentName())) {
                page = pageComponent.requestContext().pageWithName(pageName);
View Full Code Here

Examples of com.espertech.esper.core.context.factory.StatementAgentInstanceFactoryCreateWindow.newContext()

            // Without context - start here
            else {
                AgentInstanceContext agentInstanceContext = getDefaultAgentInstanceContext(statementContext);
                final StatementAgentInstanceFactoryCreateWindowResult resultOfStart;
                try {
                    resultOfStart = contextFactory.newContext(agentInstanceContext, false);
                }
                catch (RuntimeException ex) {
                    services.getNamedWindowService().removeProcessor(windowName);
                    throw ex;
                }
View Full Code Here

Examples of com.espertech.esper.core.context.factory.StatementAgentInstanceFactoryCreateWindow.newContext()

            // Without context - start here
            else {
                AgentInstanceContext agentInstanceContext = getDefaultAgentInstanceContext(statementContext);
                final StatementAgentInstanceFactoryCreateWindowResult resultOfStart;
                try {
                    resultOfStart = contextFactory.newContext(agentInstanceContext, false);
                }
                catch (RuntimeException ex) {
                    services.getNamedWindowService().removeProcessor(windowName);
                    throw ex;
                }
View Full Code Here

Examples of com.espertech.esper.core.context.factory.StatementAgentInstanceFactoryOnTrigger.newContext()

            };
        }
        // Without context - start here
        else {
            AgentInstanceContext agentInstanceContext = getDefaultAgentInstanceContext(statementContext);
            final StatementAgentInstanceFactoryOnTriggerResult resultOfStart = contextFactory.newContext(agentInstanceContext, false);
            finalViewable = resultOfStart.getFinalView();
            stopStatementMethod = new EPStatementStopMethod() {
                public void stop() {
                    resultOfStart.getStopCallback().stop();
                    stopMethod.stop();
View Full Code Here

Examples of com.espertech.esper.core.context.factory.StatementAgentInstanceFactoryOnTrigger.newContext()

            };
        }
        // Without context - start here
        else {
            AgentInstanceContext agentInstanceContext = getDefaultAgentInstanceContext(statementContext);
            final StatementAgentInstanceFactoryOnTriggerResult resultOfStart = contextFactory.newContext(agentInstanceContext, false);
            finalViewable = resultOfStart.getFinalView();
            stopStatementMethod = new EPStatementStopMethod() {
                public void stop() {
                    resultOfStart.getStopCallback().stop();
                    stopMethod.stop();
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.