Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: security-0.4.5
-
Component/s: security
-
Labels:None
-
Number of attachments :
Description
I would like to have a marker annotation for SecurityConfiguration. Maybe @SecurityConfiguration?
The idea is to avoid the contributeSecurityConfiguration naming convention in my AppModule and use something like this:
@Contribute(HttpServletRequestFilter.class) @Marker(@SecurityConfiguration.class) public static void setupSecurity(Configuration<SecurityFilterChain> configuration, SecurityFilterChainFactory factory) { ...
Following T5's naming conventions, I named the marker just @Security. Surprisingly, that only collides with java.security.Security which feels better to me than having both an service impl class SecurityConfiguration and an annotation @SecurityConfiguration in (almost) the same namespace.