Remove use of 'javax.annotation.Resource'
This commit removes the only use of the `javax.annotation.Resource` annotation from the codebase. This ensures that injection point are only defined with Spring's annotation model. Closes gh-9441
This commit is contained in:
parent
58a1ed19a9
commit
85c7643638
|
|
@ -16,8 +16,7 @@
|
|||
|
||||
package org.springframework.boot.autoconfigure.security.oauth2.client;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
import org.springframework.boot.autoconfigure.condition.AnyNestedCondition;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionMessage;
|
||||
|
|
@ -106,9 +105,12 @@ public class OAuth2RestOperationsConfiguration {
|
|||
@Configuration
|
||||
protected static class ClientContextConfiguration {
|
||||
|
||||
@Resource
|
||||
@Qualifier("accessTokenRequest")
|
||||
protected AccessTokenRequest accessTokenRequest;
|
||||
private final AccessTokenRequest accessTokenRequest;
|
||||
|
||||
public ClientContextConfiguration(@Qualifier("accessTokenRequest")
|
||||
ObjectProvider<AccessTokenRequest> accessTokenRequest) {
|
||||
this.accessTokenRequest = accessTokenRequest.getIfAvailable();
|
||||
}
|
||||
|
||||
@Bean
|
||||
@Scope(value = "session", proxyMode = ScopedProxyMode.INTERFACES)
|
||||
|
|
|
|||
Loading…
Reference in New Issue