本文整理汇总了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);
}