in meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java [50:69]
public MeecrowaveBus(final ServletContext context) {
final ClassLoader appLoader = context.getClassLoader();
final Meecrowave meecrowave = Meecrowave.class.cast(context.getAttribute("meecrowave.instance"));
final Configuration builder = Configuration.class.cast(context.getAttribute("meecrowave.configuration"));
if (meecrowave.getClientBus() == null) {
delegate = new ConfigurableBus();
if (builder != null && builder.isJaxrsProviderSetup()) {
delegate.initProviders(builder, appLoader);
}
} else {
delegate = meecrowave.getClientBus();
if (builder != null && !builder.isInitializeClientBus() && builder.isJaxrsProviderSetup()) {
delegate.initProviders(builder, appLoader);
}
}
setProperty(ClassUnwrapper.class.getName(), this);
setExtension(appLoader, ClassLoader.class); // ServletController locks on the classloader otherwise
}