Examples of addPackage()


Examples of org.drools.core.impl.KnowledgeBaseImpl.addPackage()

       
        buildContext.setRule( rule );

        pctxFactory = conf.getComponentFactory().getPropagationContextFactory();
       
        rbase.addPackage( pkg );
        context.put( BUILD_CONTEXT,
                     buildContext );
        context.put( "ClassFieldAccessorStore",
                     this.reteTesterHelper.getStore() );
View Full Code Here

Examples of org.drools.core.reteoo.ReteooRuleBase.addPackage()

       
        buildContext.setRule( rule );

        pctxFactory = conf.getComponentFactory().getPropagationContextFactory();
       
        rbase.addPackage( pkg );
        context.put( BUILD_CONTEXT,
                     buildContext );
        context.put( "ClassFieldAccessorStore",
                     this.reteTesterHelper.getStore() );
View Full Code Here

Examples of org.drools.core.util.BinaryRuleBaseLoader.addPackage()

                                        ClassLoader classloader) throws IOException,
                                                                ClassNotFoundException {
        RuleBase rulebase = RuleBaseFactory.newRuleBase( new RuleBaseConfiguration( classloader ) );
        BinaryRuleBaseLoader rbl = new BinaryRuleBaseLoader( rulebase,
                                                             classloader );
        rbl.addPackage( new ByteArrayInputStream( item.getCompiledBinaryBytes() ) );
        return rulebase;
    }

    private SingleScenarioResult runScenario(Scenario scenario,
                                             ModuleItem item,
View Full Code Here

Examples of org.drools.guvnor.client.explorer.navigation.modules.PackageHierarchicalView.addPackage()

        RepositoryServiceFactory.getPackageService().listPackages( new GenericCallback<PackageConfigData[]>() {
            public void onSuccess( PackageConfigData[] values ) {
                PackageView ph = new PackageHierarchicalView();

                for (PackageConfigData val : values) {
                    ph.addPackage( val );
                }
                for (Folder hf : ph.getRootFolder().getChildren()) {
                    buildDeploymentTree( root, hf );
                }
            }
View Full Code Here

Examples of org.drools.guvnor.client.explorer.navigation.modules.PackageView.addPackage()

        RepositoryServiceFactory.getPackageService().listPackages( new GenericCallback<PackageConfigData[]>() {
            public void onSuccess( PackageConfigData[] values ) {
                PackageView ph = new PackageHierarchicalView();

                for (PackageConfigData val : values) {
                    ph.addPackage( val );
                }
                for (Folder hf : ph.getRootFolder().getChildren()) {
                    buildDeploymentTree( root, hf );
                }
            }
View Full Code Here

Examples of org.drools.reteoo.ReteooRuleBase.addPackage()

        PackageDescr packageDescr = parser.parse(drl);
        PackageBuilder builder = new PackageBuilder();
        builder.addPackage(packageDescr);
        Package pkg = builder.getPackage();
        ReteooRuleBase ruleBase = (ReteooRuleBase) RuleBaseFactory.newRuleBase(RuleBase.RETEOO);
        ruleBase.addPackage(pkg);

        final ReteooVisitor visitor = new ReteooVisitor( graph );
        visitor.visit( ruleBase );

        BaseVertex root = visitor.getRootVertex();
View Full Code Here

Examples of org.evolizer.core.util.projecthandling.JavaProjectHelper.addPackage()

     */
    public static void setUpProject() throws CoreException, IOException{
        JavaProjectHelper helper = new JavaProjectHelper();
        helper.createProject("TestProject1", "bin", null);
        helper.addStandartSourceFolder(null);
        helper.addPackage("testPackage", null);
        helper.addPackage("testPackage.ae", null);
   
        helper.addSourceFile("testPackage.ae", "IEnumPlanet.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/IEnumPlanet.java")), null);
        helper.addSourceFile("testPackage.ae", "EnumPlanet.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/EnumPlanet.java")), null);
        helper.addSourceFile("testPackage.ae", "UseEnumPlanet.java", TestHelper.getFileContent(FamixImporterPlugin.openBundledFile("./data/testPackage/ae/UseEnumPlanet.java")), null);
View Full Code Here

Examples of org.exolab.castor.xml.XMLClassDescriptorResolver.addPackage()

            XMLClassDescriptorResolver classDescriptorResolver = (XMLClassDescriptorResolver) ClassDescriptorResolverFactory
                    .createClassDescriptorResolver(BindingType.XML);
            classDescriptorResolver
                    .setClassLoader(XmlClassDescriptorResolverTest.class
                            .getClassLoader());
            classDescriptorResolver.addPackage("org.castor.xmlctf.bestpractise.genpackage");
           
            Unmarshaller unmarshaller = new Unmarshaller();
            unmarshaller.setResolver(classDescriptorResolver);
            InputStream stream = this.getClass().getClassLoader().getResourceAsStream("genpackage-input.xml");
            Assert.assertNotNull("InputStream must not be null", stream);
View Full Code Here

Examples of org.exolab.castor.xml.XMLContext.addPackage()

                  && (node.getLocalName().equals(JDOConstants.ANNOTATIONS_TABLE_NAME)
                          || node.getLocalName().equals(JDOConstants.ANNOTATIONS_COLUMN_NAME)
                          || node.getLocalName().equals(JDOConstants.ANNOTATIONS_ONE_TO_ONE_NAME)
                          || node.getLocalName().equals(JDOConstants.ANNOTATIONS_ONE_TO_MANY))) {
              XMLContext context = new XMLContext();
              context.addPackage(JDOConstants.GENERATED_ANNOTATION_CLASSES_PACKAGE);
              Unmarshaller unmarshaller = context.createUnmarshaller();              
              unmarshaller.setClassLoader(getClass().getClassLoader());
              _appInfo.getJdoContent().add(unmarshaller.unmarshal(node));
          }           
          //-- add to appInfo
View Full Code Here

Examples of org.guvnor.common.services.project.model.KBaseModel.addPackage()

        }

        String pkgs = reader.getAttribute("packages");
        if (pkgs != null) {
            for (String pkg : pkgs.split(",")) {
                kBase.addPackage(pkg.trim());
            }
        }

        String includes = reader.getAttribute("includes");
        if (includes != null) {
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.