Examples of activate()


Examples of org.apache.geronimo.connector.ActivationSpecWrapper.activate()

            public boolean isDeliveryTransacted(Method method) throws NoSuchMethodException {
                return true;
            }
        };

        asWrapper.activate(messageEndpointFactory);

        Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
        MessageProducer producer = session.createProducer(new ActiveMQQueue("TEST"));
        producer.send(session.createTextMessage("Hello"));
View Full Code Here

Examples of org.apache.log4j.config.PropertySetter.activate()

    } else {
          parseUnrecognizedElement(instance, currentElement, props);
      }
  }
      }
      propSetter.activate();
      return appender;
    }
    /* Yes, it's ugly.  But all of these exceptions point to the same
       problem: we can't create an Appender */
    catch (Exception oops) {
View Full Code Here

Examples of org.apache.maven.cli.logging.Slf4jConfiguration.activate()

                // Ignore
                //
            }
        }

        slf4jConfiguration.activate();

        plexusLoggerManager = new Slf4jLoggerManager();
        slf4jLogger = slf4jLoggerFactory.getLogger( this.getClass().getName() );
    }
View Full Code Here

Examples of org.apache.myfaces.view.facelets.pool.ViewEntry.activate()

        {
            return null;
        }
        do
        {
            if (entry.activate())
            {
                return entry;
            }
            entry = q.poll();
        }
View Full Code Here

Examples of org.apache.servicemix.common.Endpoint.activate()

            List<Endpoint> activated = new ArrayList<Endpoint>();
            try {
                for (Iterator iter = getEndpoints().iterator(); iter.hasNext();) {
                    Endpoint endpoint = (Endpoint) iter.next();
                    if (endpoint instanceof WSNPullPointEndpoint) {
                        endpoint.activate();
                        activated.add(endpoint);
                    }
                }
                for (Iterator iter = getEndpoints().iterator(); iter.hasNext();) {
                    Endpoint endpoint = (Endpoint) iter.next();
View Full Code Here

Examples of org.apache.sling.models.impl.injectors.OSGiServiceInjector.activate()

        bundleContext.registerService(AdapterFactory.class.getName(), mockModelAdapterFactory, null);

        // register some injectors
        bundleContext.registerService(Injector.class.getName(), new RequestAttributeInjector(), null);
        OSGiServiceInjector osgiServiceInjector = new OSGiServiceInjector();
        osgiServiceInjector.activate(componentContext);
        bundleContext.registerService(Injector.class.getName(), osgiServiceInjector, null);

        // register implementation pickers
        bundleContext.registerService(ImplementationPicker.class.getName(), new FirstImplementationPicker(), null);
View Full Code Here

Examples of org.apache.stanbol.enhancer.engines.langid.LangIdEnhancementEngine.activate()

    @Test
    public void testEngine() throws EngineException, IOException, ConfigurationException {
        LangIdEnhancementEngine langIdEngine = new LangIdEnhancementEngine();
        ComponentContext context =  new MockComponentContext();
        context.getProperties().put(EnhancementEngine.PROPERTY_NAME, "langid");
        langIdEngine.activate(context);
        ContentItem ci = ciFactory.createContentItem(new StringSource(text));
        langIdEngine.computeEnhancements(ci);
        HashMap<UriRef,Resource> expectedValues = new HashMap<UriRef,Resource>();
        expectedValues.put(Properties.ENHANCER_EXTRACTED_FROM, ci.getUri());
        expectedValues.put(Properties.DC_CREATOR, LiteralFactory.getInstance().createTypedLiteral(
View Full Code Here

Examples of org.apache.synapse.message.processors.forward.MessageForwardingProcessorView.activate()

                if (processor instanceof ScheduledMessageForwardingProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
                    if (!view.isActive()) {
                        view.activate();
                    } else {
                        log.warn("Scheduled Message Forwarding Processor is already active");
                    }
                } else if(processor instanceof SamplingProcessor) {
                     SamplingProcessorView view =
View Full Code Here

Examples of org.apache.synapse.message.processors.sampler.SamplingProcessorView.activate()

                    }
                } else if(processor instanceof SamplingProcessor) {
                     SamplingProcessorView view =
                            ((SamplingProcessor) processor).getView();
                    if (!view.isActive()) {
                        view.activate();
                    } else {
                        log.warn("Sampling Processor is already active");
                    }
                }
            }
View Full Code Here

Examples of org.apache.tapestry.IRequestCycle.activate()

        trainGetPage(cycle, "Home", page);

        page.setError("An error.");

        cycle.activate(page);

        replayControls();

        new ErrorPresenterImpl().presentError("An error.", cycle);
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.