Package org.drools.smf

Examples of org.drools.smf.ApplicationDataFactory


                                             ruleBaseContext );

        Importer importer = new DefaultImporter( );
        ruleSet.setImporter( importer );

        ApplicationDataFactory factory = new BaseApplicationDataFactory( );

        ApplicationData applicationData = factory.newApplicationData( ruleSet,
                                                                      ruleBaseContext,
                                                                      configuration );

        assertEquals( java.util.HashMap.class,
                      applicationData.getType( ) );
View Full Code Here


        Importer importer = new DefaultImporter( );
        importer.addImport( new DefaultImportEntry( "java.util.HashMap" ) );
        ruleSet.setImporter( importer );

        ApplicationDataFactory factory = new BaseApplicationDataFactory( );

        ApplicationData applicationData = factory.newApplicationData( ruleSet,
                                                                      ruleBaseContext,
                                                                      configuration );

        assertEquals( java.util.HashMap.class,
                      applicationData.getType( ) );
View Full Code Here

        Importer importer = new DefaultImporter( );
        importer.addImport( new DefaultImportEntry( "java.util.*" ) );
        ruleSet.setImporter( importer );

        ApplicationDataFactory factory = new BaseApplicationDataFactory( );

        ApplicationData applicationData = factory.newApplicationData( ruleSet,
                                                                      ruleBaseContext,
                                                                      configuration );

        assertEquals( java.util.HashMap.class,
                      applicationData.getType( ) );
View Full Code Here

    public Object end( String uri, String localName ) throws SAXException
    {
        SemanticModule module = this.ruleSetReader.lookupSemanticModule( uri,
                                                                    localName );

        ApplicationDataFactory factory = module.getApplicationDataFactory( localName );       

        Configuration config = this.ruleSetReader.endConfiguration( );
        ApplicationData applicationData;
        try
        {
            applicationData = factory.newApplicationData( this.ruleSetReader.getRuleSet( ),
                                                          this.ruleSetReader.getFactoryContext( ),
                                                          config );
            this.ruleSetReader.getRuleSet( ).addApplicationData( applicationData );

        }
View Full Code Here

TOP

Related Classes of org.drools.smf.ApplicationDataFactory

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.