Examples of JndiRegistry


Examples of org.apache.camel.impl.JndiRegistry

        pre = parser.parsePredicate();
        assertTrue("Should match", pre.matches(exchange));
    }

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();

        List<String> list = new ArrayList<String>();
        list.add("foo");
        list.add("bar");

        jndi.bind("myList", list);
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

    private Configuration conf;

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();

        conf = new Configuration();
        conf.registerExtensionFunction(new SimpleExtension());

        jndi.bind("saxonConf", conf);
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

            context.stop();
        }
    }

    protected CamelContext createCamelContext() throws Exception {
        return new DefaultCamelContext(new JndiRegistry(JndiTest.createInitialContext()));
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

*/
public class SimpleTest extends LanguageTestSupport {

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("myAnimal", new Animal("Donkey", 17));
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

            // ok
        }
    }

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("myCodec", new MyCodec());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

*/
public class SimpleTest extends LanguageTestSupport {

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("myAnimal", new Animal("Donkey", 17));
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

*/
public class SimpleOperatorTest extends LanguageTestSupport {

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("generator", new MyFileNameGenerator());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

        };
    }

    @Override
    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();
        jndi.bind("testBean", new TestBean());
        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

* Unit test for the HL7MLLP Codec.
*/
public class HL7MLLPCodecTest extends ContextTestSupport {

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();

        // START SNIPPET: e1
        HL7MLLPCodec codec = new HL7MLLPCodec();
        codec.setCharset("iso-8859-1");

        jndi.bind("hl7codec", codec);
        // END SNIPPET: e1

        return jndi;
    }
View Full Code Here

Examples of org.apache.camel.impl.JndiRegistry

* Unit test for the HL7MLLP Codec using different start and end bytes.
*/
public class HL7MLLPCodecStandAndEndBytesTest extends ContextTestSupport {

    protected JndiRegistry createRegistry() throws Exception {
        JndiRegistry jndi = super.createRegistry();

        HL7MLLPCodec codec = new HL7MLLPCodec();
        codec.setCharset("iso-8859-1");
        // to test with different start and end bytes.
        codec.setStartByte('*');
        codec.setEndByte1('#');
        codec.setEndByte2('*');
        codec.setConvertLFtoCR(false);

        jndi.bind("hl7codec", codec);

        return jndi;
    }
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.