Set<Type> apiList = new LinkedHashSet<Type>();
AnnotatedType<X> baseType = getLocalBean();
if (baseType != null) {
BaseType sourceApi = moduleBeanManager.createSourceBaseType(baseType.getBaseType());
apiList.addAll(sourceApi.getTypeClosure(moduleBeanManager));
}
if (localApiList != null) {
for (AnnotatedType<? super X> api : localApiList) {
baseApi = api.getJavaClass();
BaseType sourceApi = moduleBeanManager.createSourceBaseType(api.getJavaClass());
apiList.addAll(sourceApi.getTypeClosure(moduleBeanManager));
}
}
apiList.add(Object.class);