use of org.apache.cxf.service.factory.FactoryBeanListenerManager in project cxf by apache.
the class PolicyEngineImpl method setBus.
@Resource
public final void setBus(Bus b) {
if (this.bus == b) {
// avoid bus init twice through injection
return;
}
bus = b;
addBusInterceptors();
FactoryBeanListenerManager fblm = bus.getExtension(FactoryBeanListenerManager.class);
if (fblm != null) {
for (FactoryBeanListener l : fblm.getListeners()) {
if (l instanceof PolicyAnnotationListener) {
return;
}
}
fblm.addListener(new PolicyAnnotationListener(bus));
}
}
Aggregations