Package org.drools.util

Examples of org.drools.util.ChainedProperties


        this.classLoader = ClassLoaderUtil.getClassLoader( classLoader,
                                                           getClass(),
                                                           false );

        this.immutable = false;
        this.chainedProperties = new ChainedProperties( "session.conf",
                                                        this.classLoader );

        if ( properties != null ) {
            this.chainedProperties.addProperties( properties );
        }
View Full Code Here


                      ClassLoader... classLoaders) {
        this.immutable = false;

        setClassLoader( classLoaders );

        this.chainedProperties = new ChainedProperties( "rulebase.conf",
                                                        this.classLoader,
                                                        true );

        if ( properties != null ) {
            this.chainedProperties.addProperties( properties );
View Full Code Here

                      ClassLoader... classLoaders) {
        this.immutable = false;

        setClassLoader( classLoaders );

        this.chainedProperties = new ChainedProperties( "rulebase.conf",
                                                        this.classLoader,
                                                        true );

        if ( properties != null ) {
            this.chainedProperties.addProperties( properties );
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        super.setUp();
       
        ChainedProperties props = new ChainedProperties( "process.email.conf" );
        emailHost = props.getProperty( "host", "locahost" );
        emailPort = props.getProperty( "port", "2345" );       
       
        server = new MinaTaskServer( taskService );
        Thread thread = new Thread( server );
        thread.start();
        Thread.sleep( 500 );
View Full Code Here

            this.classLoader = Thread.currentThread().getContextClassLoader();
        } else {
            this.classLoader = this.getClass().getClassLoader();
        }

        this.chainedProperties = new ChainedProperties( "rulebase.conf" );

        if ( properties != null ) {
            this.chainedProperties.addProperties( properties );
        }
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        super.setUp();
       
        ChainedProperties props = new ChainedProperties("process.email.conf", ClassLoaderUtil.getClassLoader(null, getClass(), false ));
        setEmailHost(props.getProperty("host", "locahost"));
        setEmailPort(props.getProperty("port", "2345"));       
       
        server = new HornetQTaskServer(taskService, 5446);
        Thread thread = new Thread(server);
        thread.start();
        Thread.sleep(500);
View Full Code Here

  @Override
  protected void setUp() throws Exception {
    super.setUp();

    ChainedProperties props = new ChainedProperties("process.email.conf", ClassLoaderUtil.getClassLoader(null, getClass(), false) );
    setEmailHost(props.getProperty("host", "locahost"));
    setEmailPort(props.getProperty("port", "2345"));       

    server = new MinaTaskServer(taskService);
    Thread thread = new Thread(server);
    thread.start();
    Thread.sleep(500);
View Full Code Here

    private static ChainedProperties getChainedProperties() {
        // See if we can find a packagebuilder.conf
        // We do this manually here, as we cannot rely on PackageBuilder doing this correctly
        // note this chainedProperties already checks System properties too
        return new ChainedProperties("packagebuilder.conf", BRMSPackageBuilder.class.getClassLoader(), // pass this as it searches currentThread anyway
                false);
    }
View Full Code Here

                classLoader = this.getClass().getClassLoader();
            }
        }
        setClassLoader( classLoader );

        this.chainedProperties = new ChainedProperties( this.classLoader,
                                                        "packagebuilder.conf" );

        if ( properties != null ) {
            this.chainedProperties.addProperties( properties );
        }
View Full Code Here


        // See if we can find a packagebuilder.conf
        // We do this manually here, as we cannot rely on PackageBuilder doing this correctly
        // note this chainedProperties already checks System properties too
        ChainedProperties chainedProperties = new ChainedProperties( "packagebuilder.conf",
            BRMSPackageBuilder.class.getClassLoader(), // pass this as it searches currentThread anyway
            false ); // false means it ignores any default values

        // the default compiler. This is nominally JANINO but can be overridden by setting drools.dialect.java.compiler to ECLIPSE
        Properties properties = new Properties();
        properties.setProperty( "drools.dialect.java.compiler",
                                chainedProperties.getProperty( "drools.dialect.java.compiler", "ECLIPSE" ) );
        properties.putAll(buildProps);
        PackageBuilderConfiguration pkgConf = new PackageBuilderConfiguration( properties );
       
        pkgConf.setAllowMultipleNamespaces(false);
        pkgConf.setClassLoader( loader );
View Full Code Here

TOP

Related Classes of org.drools.util.ChainedProperties

Copyright © 2018 www.massapicom. 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.