File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
config/src/main/java/org/springframework/security/config/annotation Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1616package org .springframework .security .config .annotation .configuration ;
1717
1818import org .springframework .beans .factory .config .AutowireCapableBeanFactory ;
19+ import org .springframework .beans .factory .config .BeanDefinition ;
1920import org .springframework .context .annotation .Bean ;
2021import org .springframework .context .annotation .Configuration ;
22+ import org .springframework .context .annotation .Role ;
2123import org .springframework .security .config .annotation .ObjectPostProcessor ;
2224import org .springframework .security .config .annotation .method .configuration .EnableGlobalMethodSecurity ;
2325import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
3436 * @since 3.2
3537 */
3638@ Configuration
39+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
3740public class ObjectPostProcessorConfiguration {
3841
3942 @ Bean
43+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
4044 public ObjectPostProcessor <Object > objectPostProcessor (
4145 AutowireCapableBeanFactory beanFactory ) {
4246 return new AutowireBeanFactoryObjectPostProcessor (beanFactory );
Original file line number Diff line number Diff line change 2828import org .springframework .context .ApplicationContext ;
2929import org .springframework .context .annotation .AdviceMode ;
3030import org .springframework .context .annotation .Bean ;
31+ import org .springframework .beans .factory .config .BeanDefinition ;
3132import org .springframework .context .annotation .Configuration ;
3233import org .springframework .context .annotation .ImportAware ;
34+ import org .springframework .context .annotation .Role ;
3335import org .springframework .core .annotation .AnnotationAttributes ;
3436import org .springframework .core .annotation .AnnotationUtils ;
3537import org .springframework .core .type .AnnotationMetadata ;
8082 * @see EnableGlobalMethodSecurity
8183 */
8284@ Configuration
85+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
8386public class GlobalMethodSecurityConfiguration
8487 implements ImportAware , SmartInitializingSingleton {
8588 private static final Log logger = LogFactory
Original file line number Diff line number Diff line change 1515 */
1616package org .springframework .security .config .annotation .method .configuration ;
1717
18+ import org .springframework .beans .factory .config .BeanDefinition ;
1819import org .springframework .context .annotation .Bean ;
1920import org .springframework .context .annotation .Configuration ;
21+ import org .springframework .context .annotation .Role ;
2022import org .springframework .security .access .annotation .Jsr250MethodSecurityMetadataSource ;
2123
2224@ Configuration
25+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
2326class Jsr250MetadataSourceConfiguration {
2427
2528 @ Bean
29+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
2630 public Jsr250MethodSecurityMetadataSource jsr250MethodSecurityMetadataSource () {
2731 return new Jsr250MethodSecurityMetadataSource ();
2832 }
You can’t perform that action at this time.
0 commit comments