1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.orchestra.conversation.spring;
20
21 import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
22
23 /***
24 * Wire the custom orchestra xml attributes to the appropriate handler classes.
25 * <p>
26 * This is invoked by spring due to the "magic" files named "spring.handlers" and
27 * "spring.schemas" in the META-INF directory.
28 * <p>
29 * When Spring encounters an attribute in a namespace specified by the above
30 * config files it invokes the appropriate bean definition decorator registered
31 * by this class.
32 */
33 public class OrchestraNamespaceHandler extends NamespaceHandlerSupport
34 {
35 public void init()
36 {
37 registerBeanDefinitionDecoratorForAttribute(
38 BeanDefinitionConversationNameAttrDecorator.XSD_CONVERSATION_NAME_ATTRIBUTE,
39 new BeanDefinitionConversationNameAttrDecorator());
40 }
41 }