本文整理匯總了Java中org.springframework.context.annotation.ScopedProxyMode.TARGET_CLASS屬性的典型用法代碼示例。如果您正苦於以下問題:Java ScopedProxyMode.TARGET_CLASS屬性的具體用法?Java ScopedProxyMode.TARGET_CLASS怎麽用?Java ScopedProxyMode.TARGET_CLASS使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.springframework.context.annotation.ScopedProxyMode
的用法示例。
在下文中一共展示了ScopedProxyMode.TARGET_CLASS屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: linkFactoryContext
@Bean
@Scope(value = "request", proxyMode = ScopedProxyMode.TARGET_CLASS)
LinkFactoryContext linkFactoryContext(FieldCheckerForSchema fieldCheckerForSchema,
MethodCheckerForLink methodCheckerForLink) throws URISyntaxException {
URI baseUri = new URI("http://localhost:9998");
return new LinkFactoryContextDefault(baseUri, methodCheckerForLink, fieldCheckerForSchema);
}
示例2: testBean
@Bean
@Lazy
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS)
public AnnotationTestBean testBean() {
AnnotationTestBean bean = new AnnotationTestBean();
bean.setName("TEST");
bean.setAge(100);
return bean;
}
示例3: authorizedUser
@Bean
@Scope(value = WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.TARGET_CLASS)
public UserDetails authorizedUser() {
UserDetails userDetails = (UserDetails) SecurityContextHolder
.getContext().getAuthentication().getPrincipal();
return userDetails;
}
示例4: gatewayRestTemplate
@Bean
@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
public OAuth2RestTemplate gatewayRestTemplate() {
OAuth2RestTemplate template =
new OAuth2RestTemplate(gatewayDetails(), new DefaultOAuth2ClientContext(accessTokenRequest));
template.setAccessTokenProvider(accessTokenProvider);
return template;
}
示例5: userApprovalHandler
@Lazy
@Scope(proxyMode=ScopedProxyMode.TARGET_CLASS)
@Bean public ApprovalStoreUserApprovalHandler userApprovalHandler() throws Exception {
ApprovalStoreUserApprovalHandler handler = new ApprovalStoreUserApprovalHandler();
handler.setApprovalStore(approvalStore());
handler.setRequestFactory(new DefaultOAuth2RequestFactory(clientDetailsService));
handler.setClientDetailsService(clientDetailsService);
return handler;
}
示例6: dashboardAccessTokenRequest
@Bean(name = "dashboardAccessTokenRequest")
@Scope(value = WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.TARGET_CLASS)
@Autowired
public AccessTokenRequest dashboardAccessTokenRequest() {
final DefaultAccessTokenRequest request = new DefaultAccessTokenRequest(httpServletRequest.getParameterMap());
final Object currentUri = httpServletRequest.getAttribute(OAuth2ClientContextFilter.CURRENT_URI);
if (currentUri != null) {
request.setCurrentUri(currentUri.toString());
}
return request;
}
示例7: dashboardResourceServerTokenServices
@Bean(name = "dashboardResourceServerTokenServices")
@Scope(value = WebApplicationContext.SCOPE_SESSION, proxyMode = ScopedProxyMode.TARGET_CLASS)
@Autowired
public ResourceServerTokenServices dashboardResourceServerTokenServices() {
final RemoteTokenServices remoteTokenServices = new RemoteTokenServices();
remoteTokenServices.setClientId(clientId);
remoteTokenServices.setClientSecret(clientSecret);
remoteTokenServices.setCheckTokenEndpointUrl(checkTokenUri);
remoteTokenServices.setAccessTokenConverter(dashboardAccessTokenConverter());
return remoteTokenServices;
}
示例8: userApprovalHandler
@Bean
@Override
@Lazy
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS)
public SparklrUserApprovalHandler userApprovalHandler() throws Exception {
SparklrUserApprovalHandler handler = new SparklrUserApprovalHandler();
handler.setApprovalStore(approvalStore());
handler.setRequestFactory(requestFactory);
handler.setClientDetailsService(clientDetailsService);
handler.setUseApprovalStore(true);
return handler;
}
示例9: awsCognitoCredentialsHolder
@Bean
@Scope(value="request", proxyMode= ScopedProxyMode.TARGET_CLASS)
public JwtIdTokenCredentialsHolder awsCognitoCredentialsHolder() {
return new JwtIdTokenCredentialsHolder();
}
示例10: awsCognitoCredentialsHolder
@Bean
@Scope(value="request", proxyMode= ScopedProxyMode.TARGET_CLASS)
public AwsCognitoCredentialsHolder awsCognitoCredentialsHolder() {
return new AwsCognitoCredentialsHolder();
}
開發者ID:IxorTalk,項目名稱:ixortalk.aws.cognito.jwt.security.filter,代碼行數:5,代碼來源:AwsCognitoAutoConfiguration.java
示例11: getSession
@Bean
@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
public Session getSession() throws Exception {
return super.getSession();
}
示例12: testBean1
@Bean @Qualifier("interesting") @Scope(value="prototype", proxyMode=ScopedProxyMode.TARGET_CLASS)
public TestBean testBean1() {
return new TestBean("interesting");
}
示例13: testBean2
@Bean @Boring @Scope(value="prototype", proxyMode=ScopedProxyMode.TARGET_CLASS)
public TestBean testBean2() {
return new TestBean("boring");
}
示例14: foo
@Bean
@Scope(value = "myTestScope", proxyMode = ScopedProxyMode.TARGET_CLASS)
@Override
public Foo foo() {
return new Foo();
}
示例15: requestScopedInstance
@Bean @Scope(value = "request", proxyMode = ScopedProxyMode.TARGET_CLASS)
public TestBean requestScopedInstance() {
return new TestBean("requestScopedInstance", 3);
}