Avoid creating proxies at runtime for Rest-based SPIs

Closes #15605
This commit is contained in:
Pedro Igor 2022-11-21 19:27:41 -03:00 committed by Václav Muzikář
parent 08061afbd4
commit 9e042b06b4
3 changed files with 1 additions and 6 deletions

View file

@ -54,8 +54,6 @@ public class PolicyTypeService extends PolicyService {
return null;
}
ResteasyProviderFactory.getInstance().injectProperties(resource);
return resource;
}

View file

@ -417,9 +417,7 @@ public class IdentityBrokerService implements IdentityProvider.AuthenticationCal
throw new NotFoundException(e.getMessage());
}
Object callback = identityProvider.callback(realmModel, this, event);
ResteasyProviderFactory.getInstance().injectProperties(callback);
return callback;
return identityProvider.callback(realmModel, this, event);
}
@Path("{provider_id}/token")

View file

@ -510,7 +510,6 @@ public class RealmAdminResource {
if (provider != null) {
Object resource = provider.getResource(session, realm, auth, adminEvent);
if (resource != null) {
ResteasyProviderFactory.getInstance().injectProperties(resource);
return resource;
}
}