Examples of addComponent()


Examples of net.sphene.goim.components.ExternalComponentManagerAddin.addComponent()

  @Override
  public void init(Object[] requirements) {
    this.db = (DB)requirements[1];
    ExternalComponentManagerAddin manager = (ExternalComponentManagerAddin)requirements[0];
    if(port < 0)
      manager.addComponent(StatsComponent.SUBDOMAIN,null,statsComponent = new StatsComponent(manager,db,this));
    else
      manager.addComponent(StatsComponent.SUBDOMAIN,null,statsComponent = new StatsComponent(manager,db,this),port);
  }

  @Override
View Full Code Here

Examples of net.tomp2p.message.Buffer.addComponent()

            sendDirectBuilder.streaming();
            sendDirectBuilder.idleTCPSeconds(Integer.MAX_VALUE);

            byte[] me = new byte[50];
            Buffer b = new Buffer(Unpooled.compositeBuffer(), 100);
            b.addComponent(Unpooled.wrappedBuffer(me));
            if (!wait) {
                ByteBuf replyBuffer = Unpooled.buffer(50);
                replyBuffer.writerIndex(50);
                b.addComponent(replyBuffer);
            }
View Full Code Here

Examples of net.tomp2p.storage.AlternativeCompositeByteBuf.addComponent()

    AlternativeCompositeByteBuf cbuf = AlternativeCompositeByteBuf.compBuffer();
    cbuf.writeInt(1);
    ByteBuf buf = Unpooled.buffer();
    buf.writeInt(2);
    cbuf.capacity(4);
    cbuf.addComponent(buf);
    cbuf.writerIndex(8);

    Assert.assertEquals(1, cbuf.readInt());
    Assert.assertEquals(2, cbuf.readInt());
  }
View Full Code Here

Examples of net.xoetrope.xui.style.XStyleFactory.addComponent()

      compfactory = new XStyleFactory( project, "net.xoetrope.xui" );
    }
    catch ( Exception ex ) {
      ex.printStackTrace();
    }
    Component xpanel = (Component)compfactory.addComponent( XPage.PANEL, 0, 0, 800, 600, null, "base/grey" );
    Component xpanelc1 = (Component)compfactory.addComponent( XPage.PANEL, 10, 10, 160, 100, null, null );
    Component xpanelc2 = (Component)compfactory.addComponent( XPage.PANEL, 10, 160, 360, 160, null, null );

    /* First child panel */
    compfactory.setParentComponent(xpanelc1);
View Full Code Here

Examples of org.apache.avalon.excalibur.component.ExcaliburComponentManager.addComponent()

        startupManager.enableLogging(getLogger().getChildLogger("startup"));
        startupManager.contextualize(this.context);
        startupManager.setLogKitManager(this.logKitManager);

        try {
            startupManager.addComponent(SAXParser.ROLE, ClassUtils.loadClass(parser), new org.apache.avalon.framework.configuration.DefaultConfiguration("", "empty"));
        } catch (Exception e) {
            throw new ConfigurationException("Could not load parser " + parser, e);
        }

        if (getLogger().isDebugEnabled()) {
View Full Code Here

Examples of org.apache.camel.CamelContext.addComponent()

    protected CamelContext createCamelContext() throws Exception {
        CamelContext camelContext = super.createCamelContext();

        // START SNIPPET: example
        camelContext.addComponent("activemq", activeMQComponent("vm://localhost?broker.persistent=false"));
        // END SNIPPET: example

        return camelContext;
    }
View Full Code Here

Examples of org.apache.camel.impl.DefaultCamelContext.addComponent()

*/
public class Starter {

    public void run() throws Exception {
        CamelContext context = new DefaultCamelContext();
        context.addComponent("properties", new PropertiesComponent("sampleconfig.properties"));
        context.addRoutes(new OrderRouteBuilder());
        context.start();
        System.in.read();
        context.stop();
    }
View Full Code Here

Examples of org.apache.camel.spring.SpringCamelContext.addComponent()

        SpringCamelContext ctx = SpringCamelContext.springCamelContext(spring);
        PlatformTransactionManager transactionManager = (PlatformTransactionManager)spring.getBean("jmsTransactionManager");
        ConnectionFactory connectionFactory = (ConnectionFactory)spring.getBean("jmsConnectionFactory");
        JmsComponent component = JmsComponent.jmsComponentTransacted(connectionFactory, transactionManager);
        component.getConfiguration().setConcurrentConsumers(1);
        ctx.addComponent("activemq", component);
        return ctx;
    }

    @Override
    protected void setUp() throws Exception {
View Full Code Here

Examples of org.apache.cocoon.pipeline.NonCachingPipeline.addComponent()

        profilingGenerator.setProfilingDataHolder(holder);

        Pipeline pipeline = new NonCachingPipeline();
        profilingGenerator.setConfiguration(configuration);

        pipeline.addComponent(profilingGenerator);
        pipeline.addComponent(new XMLSerializer());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        pipeline.setup(baos, configuration);
        pipeline.execute();
View Full Code Here

Examples of org.apache.cocoon.pipeline.Pipeline.addComponent()

        profilingGenerator.setProfilingDataHolder(holder);

        Pipeline pipeline = new NonCachingPipeline();
        profilingGenerator.setConfiguration(configuration);

        pipeline.addComponent(profilingGenerator);
        pipeline.addComponent(new XMLSerializer());

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        pipeline.setup(baos, configuration);
        pipeline.execute();
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.