예제 #1
0
 public JAXBValueStore(JAXBHelperContext aJAXBHelperContext, Object anEntity) {
   this.jaxbHelperContext = aJAXBHelperContext;
   this.listWrappers = new WeakHashMap<Property, JAXBListWrapper>();
   JAXBContext jaxbContext = (JAXBContext) jaxbHelperContext.getJAXBContext();
   this.descriptor =
       (XMLDescriptor) jaxbContext.getXMLContext().getSession(anEntity).getDescriptor(anEntity);
   this.entity = anEntity;
 }
 @Override
 public void setUp() throws Exception {
   JAXBContext ctx = (JAXBContext) JAXBContextFactory.createContext(new Class[] {Foo.class}, null);
   this.project = ctx.getXMLContext().getSession(0).getProject();
 }