Skip to content
Permalink
Browse files
[CXF-5568] Restricting the check only if ClassLoader is requested
git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1569395 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Sergey Beryozkin committed Feb 18, 2014
1 parent 15bcc14 commit 57232118d08140d265db83af256a3085ee6005ef
Showing 1 changed file with 2 additions and 1 deletion.
@@ -64,7 +64,8 @@ private <T> List<T> getBeansFromOsgiService(Class<T> type) {
ServiceReference refs[] = context.getServiceReferences(type.getName(), null);
if (refs != null) {
for (ServiceReference r : refs) {
if (checkCompatibleLocators
if (type == ClassLoader.class
&& checkCompatibleLocators
&& !PropertyUtils.isTrue(r.getProperty(COMPATIBLE_LOCATOR_PROP))) {
continue;
}

0 comments on commit 5723211

Please sign in to comment.