use of org.mule.runtime.api.ioc.ObjectProvider in project mule by mulesoft.
the class ObjectProviderAwareBeanFactory method getBeansOfType.
@Override
public <T> Map<String, T> getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) throws BeansException {
Map<String, T> beans = new HashMap<>();
for (ObjectProvider objectProvider : objectProviders) {
beans.putAll(objectProvider.getObjectsByType(type));
}
beans.putAll(super.getBeansOfType(type, includeNonSingletons, allowEagerInit));
return unmodifiableMap(beans);
}
use of org.mule.runtime.api.ioc.ObjectProvider in project mule by mulesoft.
the class ObjectProviderAwareBeanFactory method getBeansOfType.
@Override
public <T> Map<String, T> getBeansOfType(Class<T> type) throws BeansException {
Map<String, T> beans = new HashMap<>();
for (ObjectProvider objectProvider : objectProviders) {
beans.putAll(objectProvider.getObjectsByType(type));
}
beans.putAll(super.getBeansOfType(type));
return unmodifiableMap(beans);
}
Aggregations