Author: darran.lofthouse(a)jboss.com
Date: 2007-08-23 08:59:10 -0400 (Thu, 23 Aug 2007)
New Revision: 4487
Modified:
stack/native/branches/dlofthouse/JBWS-1792/src/main/java/org/jboss/ws/metadata/config/binding/OMFactoryJAXRPC.java
Log:
Add support for handler init-param in ObjectModelFactory for JAXRPC configurations.
Modified:
stack/native/branches/dlofthouse/JBWS-1792/src/main/java/org/jboss/ws/metadata/config/binding/OMFactoryJAXRPC.java
===================================================================
---
stack/native/branches/dlofthouse/JBWS-1792/src/main/java/org/jboss/ws/metadata/config/binding/OMFactoryJAXRPC.java 2007-08-23
12:42:33 UTC (rev 4486)
+++
stack/native/branches/dlofthouse/JBWS-1792/src/main/java/org/jboss/ws/metadata/config/binding/OMFactoryJAXRPC.java 2007-08-23
12:59:10 UTC (rev 4487)
@@ -145,6 +145,24 @@
}
/**
+ * Called when parsing of a new element started.
+ */
+ public Object newChild(UnifiedHandlerMetaData handler, UnmarshallingContext navigator,
String namespaceURI, String localName, Attributes attrs)
+ {
+ if ("init-param".equals(localName))
+ return new UnifiedInitParamMetaData();
+ else return null;
+ }
+
+ /**
+ * Called when parsing character is complete.
+ */
+ public void addChild(UnifiedHandlerMetaData handler, UnifiedInitParamMetaData param,
UnmarshallingContext navigator, String namespaceURI, String localName)
+ {
+ handler.addInitParam(param);
+ }
+
+ /**
* Called when a new simple child element with text value was read from the XML
content.
*/
public void setValue(UnifiedHandlerMetaData handler, UnmarshallingContext navigator,
String namespaceURI, String localName, String value)
Show replies by date