01: /*
02: * SAMLJAXBUtil.java
03: *
04: * Created on September 20, 2006, 4:31 AM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package com.sun.xml.wss.saml.util;
11:
12: import javax.xml.bind.JAXBContext;
13: import javax.xml.bind.JAXBException;
14: import javax.xml.ws.WebServiceException;
15:
16: /**
17: *
18: * @author root
19: */
20: public class SAMLJAXBUtil {
21:
22: /** Creates a new instance of SAMLJAXBUtil */
23: public static final JAXBContext jaxbContext;
24: static {
25: try {
26: jaxbContext = JAXBContext
27: .newInstance("com.sun.xml.wss.saml.internal.saml11.jaxb20");
28:
29: } catch (JAXBException je) {
30: throw new WebServiceException(je);
31: }
32: }
33:
34: public static JAXBContext getJAXBContext() {
35: return jaxbContext;
36: }
37: }
|