You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2008/01/14 21:44:14 UTC
svn commit: r611923 -
/incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
Author: dkulp
Date: Mon Jan 14 12:44:09 2008
New Revision: 611923
URL: http://svn.apache.org/viewvc?rev=611923&view=rev
Log:
Make the marshaller properties configurable
Modified:
incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
Modified: incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java?rev=611923&r1=611922&r2=611923&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java (original)
+++ incubator/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java Mon Jan 14 12:44:09 2008
@@ -505,5 +505,22 @@
this.contextProperties = contextProperties;
}
-
+ /**
+ * Return a map of properties. These properties are set into the JAXB Marshaller
+ * (via Marshaller.setProperty(...) when the marshaller is created.
+ * @return the map of JAXB marshaller properties.
+ */
+ public Map<String, Object> getMarshallerProperties() {
+ return marshallerProperties;
+ }
+
+ /**
+ * Set a map of JAXB marshaller properties. These properties are set into the JAXB Marshaller
+ * (via Marshaller.setProperty(...) when the marshaller is created.
+ *
+ * @param marshallerProperties map of properties.
+ */
+ public void setMarshallerProperties(Map<String, Object> marshallerProperties) {
+ this.marshallerProperties = marshallerProperties;
+ }
}