Examples of CompositeClassLoader


Examples of org.kie.util.CompositeClassLoader

        }
        return null;
    }

    static CompositeClassLoader getCompositeClassLoader(final Object obj, final WorkingMemory workingMemory) {
        CompositeClassLoader classLoader = getCompositeClassLoader(obj); // Try to use the same ClassLoader used for the stub
        if (classLoader == null) {
            classLoader = ((AbstractRuleBase)workingMemory.getRuleBase()).getRootClassLoader();
        }
        return classLoader;
    }
View Full Code Here

Examples of org.kie.util.CompositeClassLoader

        return classLoader;
    }

    static ClassGenerator createInvokerClassGenerator(final InvokerStub stub, final WorkingMemory workingMemory) {
        String className = stub.getPackageName() + "." + stub.getGeneratedInvokerClassName();
        CompositeClassLoader classLoader = getCompositeClassLoader(stub, workingMemory);
        return createInvokerClassGenerator(className, stub, classLoader, getTypeResolver(stub, workingMemory, classLoader));
    }
View Full Code Here

Examples of org.kie.util.CompositeClassLoader

        InternalRuleBase ruleBase = ((InternalRuleBase) workingMemory.getRuleBase());
        if ( MemoryUtil.permGenStats.isUsageThresholdExceeded(ruleBase.getConfiguration().getPermGenThreshold()) ) {
            return;
        }

        CompositeClassLoader classLoader = ruleBase.getRootClassLoader();
        if (analyzedCondition == null) {
            analyzedCondition = ((MvelConditionEvaluator) conditionEvaluator).getAnalyzedCondition(object, workingMemory, leftTuple);
        }
        try {
            conditionEvaluator = ASMConditionEvaluatorJitter.jitEvaluator(expression, analyzedCondition, declarations, classLoader, leftTuple);
View Full Code Here

Examples of org.openengsb.core.util.CompositeClassLoader

    private Connector createProxy(VirtualType handler, Collection<Class<?>> interfaces) {
        Class<? extends Domain> domainInterface = domainProvider.getDomainInterface();
        Set<Class<?>> classes = Sets.newHashSet(interfaces);
        classes.add(domainInterface);
        classes.add(Connector.class);
        CompositeClassLoader compositeClassLoader = makeCompositeClassLoader(domainInterface, classes);
        Class<?>[] classesAsArray = classes.toArray(new Class<?>[classes.size()]);
        return (Connector) Proxy.newProxyInstance(compositeClassLoader, classesAsArray, handler);
    }
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.