01: /**
02: *
03: */package org.acegisecurity.config;
04:
05: import org.springframework.beans.factory.xml.BeanDefinitionParser;
06: import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
07:
08: /**
09: * {@link org.springframework.beans.factory.xml.NamespaceHandler} for the '<code>security</code>' namespace.
10: * @author vpuri
11: *
12: * @since
13: */
14: public class SecurityNamespaceHandler extends NamespaceHandlerSupport {
15:
16: /**
17: * Register the {@link BeanDefinitionParser BeanDefinitionParsers} for the
18: * '<code>context-integration</code>', ' and '<code></code>' elements.
19: */
20: public void init() {
21: registerBeanDefinitionParser("principal-repository",
22: new PrincipalRepositoryBeanDefinitionParser());
23: registerBeanDefinitionParser("session-context-integration",
24: new ContextIntegrationBeanDefinitionParser());
25: registerBeanDefinitionParser("authentication-repository",
26: new AuthenticationRepositoryBeanDefinitionParser());
27: registerBeanDefinitionParser("authentication-mechanism",
28: new AuthenticationMechanismBeanDefinitionParser());
29: registerBeanDefinitionParser(
30: "authentication-remember-me-services",
31: new RememberMeServicesBeanDefinitionParser());
32: registerBeanDefinitionParser(
33: "authentication-remember-me-filter",
34: new RememberMeFilterBeanDefinitionParser());
35: registerBeanDefinitionParser("logout-support",
36: new LogoutFilterBeanDefinitionParser());
37: registerBeanDefinitionParser("exception-translation",
38: new ExceptionTranslationFilterBeanDefinitionParser());
39: registerBeanDefinitionParser(
40: "authentication-form",
41: new AuthenticationProcessingFilterBeanDefinitionParser());
42: registerBeanDefinitionParser("authorization-manager",
43: new AuthorizationManagerBeanDefinitionParser());
44: registerBeanDefinitionParser("authorization-http-url",
45: new FilterSecurityInterceptorBeanDefinitionParser());
46: registerBeanDefinitionParser("authorization-joinpoint",
47: new AuthorizationMethodBeanDefinitionParser());
48: registerBeanDefinitionParser("autoconfig",
49: new AutoConfigBeanDefinitionParser());
50: }
51:
52: }
|