Search in sources :

Example 1 with FactoryBeanListenerManager

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));
    }
}
Also used : FactoryBeanListener(org.apache.cxf.service.factory.FactoryBeanListener) FactoryBeanListenerManager(org.apache.cxf.service.factory.FactoryBeanListenerManager) Resource(javax.annotation.Resource)

Aggregations

Resource (javax.annotation.Resource)1 FactoryBeanListener (org.apache.cxf.service.factory.FactoryBeanListener)1 FactoryBeanListenerManager (org.apache.cxf.service.factory.FactoryBeanListenerManager)1