Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
JBRULES-2813 Unify two Composite ClassLoader implementations
Browse files Browse the repository at this point in the history
-Users should no longer be able to set the classloader directly, only add classloaders to the composite classloader

git-svn-id: https://svn.jboss.org/repos/labs/labs/jbossrules/trunk@36214 c60d74c8-e8f6-0310-9e8f-d4a2fc68ab70
  • Loading branch information
mdproctor committed Dec 5, 2010
1 parent 1b9bb33 commit 5de19db
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -518,8 +518,7 @@ private AntClassLoader getClassLoader() {
*/
private PackageBuilder getPackageBuilder(AntClassLoader loader) {
// creating package builder configured with the give classloader
PackageBuilderConfiguration conf = new PackageBuilderConfiguration();
conf.setClassLoader( loader );
PackageBuilderConfiguration conf = new PackageBuilderConfiguration( loader );
PackageBuilder builder = new PackageBuilder( conf );
return builder;
}
Expand All @@ -542,8 +541,7 @@ private String[] getFileList() {

private KnowledgeBuilder getKnowledgeBuilder(AntClassLoader loader) {
// creating package builder configured with the give classloader
PackageBuilderConfiguration conf = new PackageBuilderConfiguration();
conf.setClassLoader( loader );
PackageBuilderConfiguration conf = new PackageBuilderConfiguration( loader );

KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder( conf );
return kbuilder;
Expand Down

0 comments on commit 5de19db

Please sign in to comment.