Java Doc for AbstractJaxbMarshaller.java in  » Web-Services » spring-ws-1.0.0 » org » springframework » oxm » jaxb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services » spring ws 1.0.0 » org.springframework.oxm.jaxb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.oxm.jaxb.AbstractJaxbMarshaller

All known Subclasses:   org.springframework.oxm.jaxb.Jaxb2Marshaller,  org.springframework.oxm.jaxb.Jaxb1Marshaller,
AbstractJaxbMarshaller
abstract public class AbstractJaxbMarshaller implements org.springframework.oxm.Marshaller,org.springframework.oxm.Unmarshaller,InitializingBean(Code)
Abstract base class for implementations of the Marshaller and Unmarshaller interfaces that use JAXB. This base class is responsible for creating JAXB marshallers from a JAXBContext.

JAXB 2.0 added breaking API changes, so specific subclasses must be used for JAXB 1.0 and 2.0 (Jaxb1Marshaller and Jaxb2Marshaller respectivaly).
author:
   Arjen Poutsma
See Also:   Jaxb1Marshaller
See Also:   Jaxb2Marshaller
since:
   1.0.0



Field Summary
final protected  Loglogger
     Logger available to subclasses.


Method Summary
final public  voidafterPropertiesSet()
    
protected  XmlMappingExceptionconvertJaxbException(JAXBException ex)
     Convert the given JAXBException to an appropriate exception from the org.springframework.oxm hierarchy.

The default implementation delegates to JaxbUtils.

abstract protected  JAXBContextcreateJaxbContext()
     Template method that returns a newly created JAXB context.
protected  MarshallercreateMarshaller()
     Returns a newly created JAXB marshaller.
protected  UnmarshallercreateUnmarshaller()
     Returns a newly created JAXB unmarshaller.
protected  StringgetContextPath()
     Returns the JAXB Context path.
public  JAXBContextgetJaxbContext()
     Returns the JAXBContext created in AbstractJaxbMarshaller.afterPropertiesSet() .
protected  voidinitJaxbMarshaller(Marshaller marshaller)
     Template method that can be overridden by concrete JAXB marshallers for custom initialization behavior.
protected  voidinitJaxbUnmarshaller(Unmarshaller unmarshaller)
     Template method that can overridden by concrete JAXB marshallers for custom initialization behavior.
public  voidsetContextPath(String contextPath)
     Sets the JAXB Context path.
public  voidsetMarshallerProperties(Map properties)
     Sets the JAXB Marshaller properties.
public  voidsetUnmarshallerProperties(Map properties)
     Sets the JAXB Unmarshaller properties.
public  voidsetValidationEventHandler(ValidationEventHandler validationEventHandler)
     Sets the JAXB validation event handler.

Field Detail
logger
final protected Log logger(Code)
Logger available to subclasses.





Method Detail
afterPropertiesSet
final public void afterPropertiesSet() throws Exception(Code)



convertJaxbException
protected XmlMappingException convertJaxbException(JAXBException ex)(Code)
Convert the given JAXBException to an appropriate exception from the org.springframework.oxm hierarchy.

The default implementation delegates to JaxbUtils. Can be overridden in subclasses.
Parameters:
  ex - JAXBException that occured the corresponding XmlMappingException instance
See Also:   JaxbUtils.convertJaxbException




createJaxbContext
abstract protected JAXBContext createJaxbContext() throws Exception(Code)
Template method that returns a newly created JAXB context. Called from afterPropertiesSet().



createMarshaller
protected Marshaller createMarshaller()(Code)
Returns a newly created JAXB marshaller. JAXB marshallers are not necessarily thread safe.



createUnmarshaller
protected Unmarshaller createUnmarshaller()(Code)
Returns a newly created JAXB unmarshaller. JAXB unmarshallers are not necessarily thread safe.



getContextPath
protected String getContextPath()(Code)
Returns the JAXB Context path.



getJaxbContext
public JAXBContext getJaxbContext()(Code)
Returns the JAXBContext created in AbstractJaxbMarshaller.afterPropertiesSet() .



initJaxbMarshaller
protected void initJaxbMarshaller(Marshaller marshaller) throws JAXBException(Code)
Template method that can be overridden by concrete JAXB marshallers for custom initialization behavior. Gets called after creation of JAXB Marshaller, and after the respective properties have been set.

Default implementation does nothing.




initJaxbUnmarshaller
protected void initJaxbUnmarshaller(Unmarshaller unmarshaller) throws JAXBException(Code)
Template method that can overridden by concrete JAXB marshallers for custom initialization behavior. Gets called after creation of JAXB Unmarshaller, and after the respective properties have been set.

Default implementation does nothing.




setContextPath
public void setContextPath(String contextPath)(Code)
Sets the JAXB Context path.



setMarshallerProperties
public void setMarshallerProperties(Map properties)(Code)
Sets the JAXB Marshaller properties. These properties will be set on the underlying JAXB Marshaller, and allow for features such as indentation.
Parameters:
  properties - the properties
See Also:   javax.xml.bind.Marshaller.setProperty(StringObject)
See Also:   javax.xml.bind.Marshaller.JAXB_ENCODING
See Also:   javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT
See Also:   javax.xml.bind.Marshaller.JAXB_NO_NAMESPACE_SCHEMA_LOCATION
See Also:   javax.xml.bind.Marshaller.JAXB_SCHEMA_LOCATION



setUnmarshallerProperties
public void setUnmarshallerProperties(Map properties)(Code)
Sets the JAXB Unmarshaller properties. These properties will be set on the underlying JAXB Unmarshaller.
Parameters:
  properties - the properties
See Also:   javax.xml.bind.Unmarshaller.setProperty(StringObject)



setValidationEventHandler
public void setValidationEventHandler(ValidationEventHandler validationEventHandler)(Code)
Sets the JAXB validation event handler. This event handler will be called by JAXB if any validation errors are encountered during calls to any of the marshal API's.
Parameters:
  validationEventHandler - the event handler



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.