Changeset 4671 for DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/JaxbMarshallerFactory.java
- Timestamp:
- 03/12/14 15:56:47 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/java/eu/dasish/annotation/backend/rest/JaxbMarshallerFactory.java
r4603 r4671 32 32 private JAXBContext context; 33 33 private Marshaller marshaller; 34 // overwritten by the context.xml's 34 // overwritten by the web.xml's 35 // why?? 35 36 private String schemaLocation = "http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/schema/trunk/annotator-schema/src/main/target/DASISH-schema.xsd"; 36 37 … … 48 49 49 50 public Marshaller createMarshaller(Class<?> type) throws JAXBException{ 50 context = JAXBContext.newInstance(type); 51 context = JAXBContext.newInstance(type); 51 52 marshaller = context.createMarshaller(); 52 53 marshaller.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, schemaLocation);
Note: See TracChangeset
for help on using the changeset viewer.