Examples of initialise()


Examples of org.mule.tck.testmodels.mule.TestAgent.initialise()

    }

    public static TestAgent getTestAgent() throws Exception
    {
        final TestAgent t = new TestAgent();
        t.initialise();
        return t;
    }

    public static Mock getMockSession()
    {
View Full Code Here

Examples of org.mule.tck.testmodels.mule.TestCompressionTransformer.initialise()

    }

    public static Transformer getTestTransformer() throws Exception
    {
        final Transformer t = new TestCompressionTransformer();
        t.initialise();
        return t;
    }

    public static MuleSession getTestSession(FlowConstruct flowConstruct, MuleContext context)
    {
View Full Code Here

Examples of org.mule.transformer.simple.MapToBean.initialise()

    public Transformer getRoundTripTransformer() throws Exception
    {
        MapToBean trans = new MapToBean();
        trans.setReturnDataType(DataTypeFactory.create(GrapeFruit.class));
        trans.setMuleContext(muleContext);
        trans.initialise();
        return trans;
    }

    @Override
    public Object getTestData()
View Full Code Here

Examples of org.mule.transformer.simple.MessagePropertiesTransformer.initialise()

        Map<String, Object> addProps = new HashMap<String, Object>();
        addProps.put("foo", "bar");
        addProps.put("foo2", "baz");
        add.setAddProperties(addProps);
        add.setMuleContext(muleContext);
        add.initialise();

        msg = (DefaultMuleMessage) add.transform(msg, (String)null);

        assertEquals("bar", msg.getInvocationProperty("foo"));
        assertNull(msg.getOutboundProperty("foo"));
View Full Code Here

Examples of org.mule.transport.soap.axis.AxisMessageDispatcher.initialise()

    protected void sendTestData(int iterations) throws Exception
    {
        OutboundEndpoint ep = muleContext.getRegistry().lookupEndpointBuilder("client").buildOutboundEndpoint();

        AxisMessageDispatcher client = new AxisMessageDispatcher(ep);
        client.initialise();
        for (int i = 0; i < iterations; i++)
        {
            MuleMessage msg = new DefaultMuleMessage("testPayload", muleContext);
            msg.addOutboundAttachment("testAttachment", new DataHandler(new StringDataSource("foo")));
            DefaultMuleSession session = new DefaultMuleSession(msg, ((AbstractConnector) ep.getConnector()).getSessionHandler(), muleContext);
View Full Code Here

Examples of org.mule.umo.endpoint.UMOEndpoint.initialise()

        }

        QName routerService = new QName(getName());
        for (Iterator iterator = router.getEndpoints().iterator(); iterator.hasNext();) {
            UMOEndpoint endpoint = (UMOEndpoint) iterator.next();
            endpoint.initialise();
            if(endpoint.getEndpointURI().getScheme().equals("container")) {
                QName name = getServiceName(endpoint);
                context.activateEndpoint(name, endpoint.getEndpointURI().getAddress());
            } else {
                MuleReceiverComponent receiverComponent = new MuleReceiverComponent();
View Full Code Here

Examples of org.mule.util.lock.MuleLockFactory.initialise()

            }
        });
        MuleLockFactory muleLockFactory = new MuleLockFactory();
        muleLockFactory.setMuleContext(mockMuleContext);
        when(mockMuleContext.getRegistry().get(MuleProperties.OBJECT_LOCK_PROVIDER)).thenReturn(new SingleServerLockProvider());
        muleLockFactory.initialise();
        when(mockMuleContext.getLockFactory()).thenReturn(muleLockFactory);
        when(mockMuleContext.getRegistry().get(MuleProperties.OBJECT_STORE_MANAGER)).thenReturn(mockObjectStoreManager);
        final InMemoryObjectStore inMemoryObjectStore = new InMemoryObjectStore();
        when(mockObjectStoreManager.getObjectStore(anyString(), anyBoolean(), anyInt(), anyInt(), anyInt())).thenAnswer(new Answer<ObjectStore>()
        {
View Full Code Here

Examples of org.mule.util.queue.TransactionalQueueManager.initialise()

    public void testRecoverMessage() throws Exception
    {
        TransactionalQueueManager transactionalQueueManager = new TransactionalQueueManager();
        transactionalQueueManager.setMuleContext(muleContext);
        transactionalQueueManager.setQueueConfiguration(TEST_QUEUE_NAME, new DefaultQueueConfiguration(0, true));
        transactionalQueueManager.initialise();
        transactionalQueueManager.start();
        MuleEvent testEvent = getTestEvent("echo");
        transactionalQueueManager.getQueueSession().getQueue(TEST_QUEUE_NAME).put(testEvent);

        transactionalQueueManager.stop();
View Full Code Here

Examples of org.protege.editor.owl.ui.renderer.OWLEntityColorProvider.initialise()

        entityColorProviders = new ArrayList<OWLEntityColorProvider>();
        OWLEntityColorProviderPluginLoader loader = new OWLEntityColorProviderPluginLoader(getOWLModelManager());
        for (OWLEntityColorProviderPlugin plugin : loader.getPlugins()) {
            try {
                OWLEntityColorProvider prov = plugin.newInstance();
                prov.initialise();
                entityColorProviders.add(prov);
            }
            catch (Exception e) {
                logger.error(e);
            }
View Full Code Here

Examples of org.terasology.engine.ComponentSystemManager.initialise()

    }

    @Override
    protected void setupComponentManager() {
        ComponentSystemManager componentSystemManager = new ComponentSystemManager();
        componentSystemManager.initialise();
        CoreRegistry.put(ComponentSystemManager.class, componentSystemManager);
    }

    @Override
    protected void loadPrefabs() {
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.