Examples of SuperProperties


Examples of org.apache.openejb.util.SuperProperties

            }

            for (final String s : d.properties()) {
                final int equal = s.indexOf('=');
                if (equal < s.length() - 1) {
                    final SuperProperties props = new SuperProperties();
                    try {
                        props.load(new ByteArrayInputStream(s.getBytes()));
                        for (final String key : props.stringPropertyNames()) {
                            if (!key.isEmpty()) {
                                dataSource.property(key, props.getProperty(key));
                            }
                        }
                    } catch (final IOException e) {
                        final String key = s.substring(0, equal).trim();
                        final String value = s.substring(equal + 1).trim();
View Full Code Here

Examples of org.openadaptor.util.SuperProperties

       
        TestLDAPSink.userManager = userManager;
        TestLDAPSink.attributeNames = attributeNames;
        TestLDAPSink.mappings = mappings;
       
    SuperProperties props = new SuperProperties(System.getProperties());
    try {
    props.put("A.Component1.Name", "mySource");
    props.put("A.Component2.Name", "myKanaputsPipe");
    props.put("A.Component3.Name", "mySink");

    props.put("A.TerminateWithHooks", "true");
    props.put("A.Logging.LogSetting1", "DEBUG");
    props.put("A.mySource.IgnoreHeaderLines", "1");

    props.put("A.mySource.LinkTo1" , "myKanaputsPipe");
    props.put("A.myKanaputsPipe.LinkTo1", "mySink");

    props.put("A.mySource.ClassName", "org.openadaptor.adaptor.standard.FileSource");
    props.put("A.mySource.DOStringReader", "org.openadaptor.dostrings.DelimitedStringReader");
    props.put("A.mySource.InputFileName", file.getName());
    props.put("A.mySource.NumAttributes", "1000");
    props.put("A.mySource.FieldDelimiter", "44");

    props.put("A.myKanaputsPipe.ClassName", "kanaputs.oa.AliasKanaputsPipe");
    props.put("A.myKanaputsPipe.ProgressBar", "false");
    props.put("A.myKanaputsPipe.Init", "System.out.println(\"---global init\");");
    props.put("A.myKanaputsPipe.Finish", "System.out.println(\"---global finish\");");

    props.put("A.mySink.ClassName", "org.itnaf.webapp.util.TestLDAPSink");
    props.put("A.mySink.DOStringWriter", "org.openadaptor.dostrings.DelimitedStringWriter");
   
   
    System.out.println("props = " + props);
    RunAdaptor theAdaptor = RunAdaptor.instantiateRunAdaptor("A", props);
    theAdaptor.run();
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.