use of org.apache.cxf.configuration.ConfiguredBeanLocator in project cxf by apache.
the class PolicyInterceptorProviderRegistryImpl method loadDynamic.
protected synchronized void loadDynamic() {
if (!dynamicLoaded && bus != null) {
dynamicLoaded = true;
ConfiguredBeanLocator c = bus.getExtension(ConfiguredBeanLocator.class);
if (c != null) {
c.getBeansOfType(PolicyInterceptorProviderLoader.class);
for (PolicyInterceptorProvider b : c.getBeansOfType(PolicyInterceptorProvider.class)) {
register(b);
}
}
}
}
use of org.apache.cxf.configuration.ConfiguredBeanLocator in project cxf by apache.
the class JMSTransactionTest method registerTransactionManager.
/**
* For real world scenarios create a bean for the transaction manager in blueprint or spring
*/
private static void registerTransactionManager() {
ConfiguredBeanLocator cbl = bus.getExtension(ConfiguredBeanLocator.class);
MyBeanLocator mybl = new MyBeanLocator(cbl);
mybl.register("tm", transactionManager);
bus.setExtension(mybl, ConfiguredBeanLocator.class);
}
Aggregations