I'm using a huge amount of beans, and to keep it readable, I've split the huge beans-definitionfile in a lot of small files, each based on a certain entity (i.e. User, Group, Role, etc.). Every file has a bean of the SimpleUrlHandlerMapping, which contains all the mappings refered to specific entity. At startup this is resolved by autowiring.
To keep the size my objectDefinitionSource of the SecurityIntercepter small, I would like a mechanism, which wires all interceptors by type, just like the HandlerMapping. This way every entity can define it's own securityrules, next to it's mapping.
I've thought of reasons, why you wouldn't want this solution, but I couldn't find one.
Anyone who has a suggestion?


