Drools :: Compiler 6.0.0.CR5

org.drools.compiler.kie.builder.impl
Class ClasspathKieProject

java.lang.Object
  extended by org.drools.compiler.kie.builder.impl.AbstractKieProject
      extended by org.drools.compiler.kie.builder.impl.ClasspathKieProject
All Implemented Interfaces:
KieProject

public class ClasspathKieProject
extends AbstractKieProject

Discovers all KieModules on the classpath, via the kmodule.xml file. KieBaseModels and KieSessionModels are then indexed, with helper lookups Each resulting KieModule is added to the KieRepository


Field Summary
static String OSGI_KIE_MODULE_CLASS_NAME
           
 
Fields inherited from class org.drools.compiler.kie.builder.impl.AbstractKieProject
kBaseModels, kSessionModels
 
Constructor Summary
ClasspathKieProject()
           
ClasspathKieProject(org.kie.api.builder.KieRepository kr)
           
 
Method Summary
static InternalKieModule createInternalKieModule(URL url, String fixedURL, org.kie.api.builder.model.KieModuleModel kieProject, org.kie.api.builder.ReleaseId releaseId, String rootPath)
           
 void discoverKieModules()
           
static InternalKieModule fetchKModule(URL url)
           
static String fixURLFromKProjectPath(URL url)
           
 ClassLoader getClassLoader()
           
 ClassLoader getClonedClassLoader()
           
 org.kie.api.builder.ReleaseId getGAV()
           
 InternalKieModule getKieModuleForKBase(String kBaseName)
           
static String getPomProperties(String urlPathToAdd)
           
 void init()
           
 
Methods inherited from class org.drools.compiler.kie.builder.impl.AbstractKieProject
cleanIndex, getDefaultKieBaseModel, getDefaultKieSession, getDefaultStatelessKieSession, getKieBaseModel, getKieSessionModel, indexParts, verify, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OSGI_KIE_MODULE_CLASS_NAME

public static final String OSGI_KIE_MODULE_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

ClasspathKieProject

public ClasspathKieProject()

ClasspathKieProject

public ClasspathKieProject(org.kie.api.builder.KieRepository kr)
Method Detail

init

public void init()

getGAV

public org.kie.api.builder.ReleaseId getGAV()

discoverKieModules

public void discoverKieModules()

fetchKModule

public static InternalKieModule fetchKModule(URL url)

createInternalKieModule

public static InternalKieModule createInternalKieModule(URL url,
                                                        String fixedURL,
                                                        org.kie.api.builder.model.KieModuleModel kieProject,
                                                        org.kie.api.builder.ReleaseId releaseId,
                                                        String rootPath)

getPomProperties

public static String getPomProperties(String urlPathToAdd)

fixURLFromKProjectPath

public static String fixURLFromKProjectPath(URL url)

getKieModuleForKBase

public InternalKieModule getKieModuleForKBase(String kBaseName)

getClassLoader

public ClassLoader getClassLoader()

getClonedClassLoader

public ClassLoader getClonedClassLoader()

Drools :: Compiler 6.0.0.CR5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.