当前位置: 首页>>代码示例>>Java>>正文


Java ScopedProxyMode.TARGET_CLASS属性代码示例

本文整理汇总了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);
}
 
开发者ID:uweschaefer,项目名称:factcast,代码行数:9,代码来源:SpringConfig.java

示例2: testBean

@Bean
@Lazy
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS)
public AnnotationTestBean testBean() {
	AnnotationTestBean bean = new AnnotationTestBean();
	bean.setName("TEST");
	bean.setAge(100);
	return bean;
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:9,代码来源:EnableMBeanExportConfigurationTests.java

示例3: authorizedUser

@Bean
@Scope(value = WebApplicationContext.SCOPE_REQUEST, proxyMode = ScopedProxyMode.TARGET_CLASS)
public UserDetails authorizedUser() {
    UserDetails userDetails = (UserDetails) SecurityContextHolder
            .getContext().getAuthentication().getPrincipal();

    return userDetails;
}
 
开发者ID:yo1000,项目名称:bluefairy,代码行数:8,代码来源:SecurityContext.java

示例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;
}
 
开发者ID:ishaigor,项目名称:rest-retro-sample,代码行数:8,代码来源:ClientOAuth2Configurer.java

示例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;
}
 
开发者ID:ishaigor,项目名称:rest-retro-sample,代码行数:9,代码来源:OAuth2UserApprovalHandlerConfigurer.java

示例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;
}
 
开发者ID:bsblabs,项目名称:cf-sample-service,代码行数:13,代码来源:DashboardSecurityConfiguration.java

示例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;
}
 
开发者ID:bsblabs,项目名称:cf-sample-service,代码行数:13,代码来源:DashboardSecurityConfiguration.java

示例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;
}
 
开发者ID:jungyang,项目名称:oauth-client-master,代码行数:12,代码来源:OAuth2ServerConfig.java

示例9: awsCognitoCredentialsHolder

@Bean
@Scope(value="request", proxyMode= ScopedProxyMode.TARGET_CLASS)
public JwtIdTokenCredentialsHolder awsCognitoCredentialsHolder() {
    return new JwtIdTokenCredentialsHolder();
}
 
开发者ID:IxorTalk,项目名称:ixortalk.aws.cognito.jwt.security.filter,代码行数:5,代码来源:JwtAutoConfiguration.java

示例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();
}
 
开发者ID:chaokunyang,项目名称:microservices-event-sourcing,代码行数:5,代码来源:GraphConfiguration.java

示例12: testBean1

@Bean @Qualifier("interesting") @Scope(value="prototype", proxyMode=ScopedProxyMode.TARGET_CLASS)
public TestBean testBean1() {
	return new TestBean("interesting");
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:4,代码来源:BeanMethodQualificationTests.java

示例13: testBean2

@Bean @Boring @Scope(value="prototype", proxyMode=ScopedProxyMode.TARGET_CLASS)
public TestBean testBean2() {
	return new TestBean("boring");
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:4,代码来源:BeanMethodQualificationTests.java

示例14: foo

@Bean
@Scope(value = "myTestScope",  proxyMode = ScopedProxyMode.TARGET_CLASS)
@Override
public Foo foo() {
	return new Foo();
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:6,代码来源:Spr10744Tests.java

示例15: requestScopedInstance

@Bean @Scope(value = "request", proxyMode = ScopedProxyMode.TARGET_CLASS)
public TestBean requestScopedInstance() {
	return new TestBean("requestScopedInstance", 3);
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:4,代码来源:FactoryMethodComponent.java


注:本文中的org.springframework.context.annotation.ScopedProxyMode.TARGET_CLASS属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。