Skip to content

Commit

Permalink
revert filtering in AutoConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin7-1 committed Sep 11, 2024
1 parent ea974c7 commit 4191e0a
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ BeanFactoryPostProcessor aiServicesRegisteringBeanFactoryPostProcessor(Environme
for (String aiService : aiServices) {
Class<?> aiServiceClass = beanFactory.getType(aiService);

// Check profile
if (aiServiceClass.isAnnotationPresent(Profile.class)) {
Profile profileAnnotation = aiServiceClass.getAnnotation(Profile.class);
String[] profiles = profileAnnotation.value();
if (!environment.matchesProfiles(profiles)) {
continue;
}
}

GenericBeanDefinition aiServiceBeanDefinition = new GenericBeanDefinition();
aiServiceBeanDefinition.setBeanClass(AiServiceFactory.class);
aiServiceBeanDefinition.getConstructorArgumentValues().addGenericArgumentValue(aiServiceClass);
Expand Down

0 comments on commit 4191e0a

Please sign in to comment.