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 16
16
package org .springframework .security .config .annotation .configuration ;
17
17
18
18
import org .springframework .beans .factory .config .AutowireCapableBeanFactory ;
19
+ import org .springframework .beans .factory .config .BeanDefinition ;
19
20
import org .springframework .context .annotation .Bean ;
20
21
import org .springframework .context .annotation .Configuration ;
22
+ import org .springframework .context .annotation .Role ;
21
23
import org .springframework .security .config .annotation .ObjectPostProcessor ;
22
24
import org .springframework .security .config .annotation .method .configuration .EnableGlobalMethodSecurity ;
23
25
import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
34
36
* @since 3.2
35
37
*/
36
38
@ Configuration
39
+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
37
40
public class ObjectPostProcessorConfiguration {
38
41
39
42
@ Bean
43
+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
40
44
public ObjectPostProcessor <Object > objectPostProcessor (
41
45
AutowireCapableBeanFactory beanFactory ) {
42
46
return new AutowireBeanFactoryObjectPostProcessor (beanFactory );
Original file line number Diff line number Diff line change 28
28
import org .springframework .context .ApplicationContext ;
29
29
import org .springframework .context .annotation .AdviceMode ;
30
30
import org .springframework .context .annotation .Bean ;
31
+ import org .springframework .beans .factory .config .BeanDefinition ;
31
32
import org .springframework .context .annotation .Configuration ;
32
33
import org .springframework .context .annotation .ImportAware ;
34
+ import org .springframework .context .annotation .Role ;
33
35
import org .springframework .core .annotation .AnnotationAttributes ;
34
36
import org .springframework .core .annotation .AnnotationUtils ;
35
37
import org .springframework .core .type .AnnotationMetadata ;
80
82
* @see EnableGlobalMethodSecurity
81
83
*/
82
84
@ Configuration
85
+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
83
86
public class GlobalMethodSecurityConfiguration
84
87
implements ImportAware , SmartInitializingSingleton {
85
88
private static final Log logger = LogFactory
Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .springframework .security .config .annotation .method .configuration ;
17
17
18
+ import org .springframework .beans .factory .config .BeanDefinition ;
18
19
import org .springframework .context .annotation .Bean ;
19
20
import org .springframework .context .annotation .Configuration ;
21
+ import org .springframework .context .annotation .Role ;
20
22
import org .springframework .security .access .annotation .Jsr250MethodSecurityMetadataSource ;
21
23
22
24
@ Configuration
25
+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
23
26
class Jsr250MetadataSourceConfiguration {
24
27
25
28
@ Bean
29
+ @ Role (BeanDefinition .ROLE_INFRASTRUCTURE )
26
30
public Jsr250MethodSecurityMetadataSource jsr250MethodSecurityMetadataSource () {
27
31
return new Jsr250MethodSecurityMetadataSource ();
28
32
}
You can’t perform that action at this time.
0 commit comments