View Javadoc
1   package org.kuali.ole.docstore.common.document.factory;
2   
3   /**
4    * Created by sheiksalahudeenm on 4/5/15.
5    */
6   public class JAXBContextThread  implements Runnable {
7       private String command;
8   
9       public JAXBContextThread(String s){
10          this.command=s;
11      }
12  
13      @Override
14      public void run() {
15          JAXBContextFactoryTest jaxbContextFactoryTest = new JAXBContextFactoryTest();
16          try {
17              jaxbContextFactoryTest.deserializeAndSerialize();
18          } catch (Exception e) {
19              e.printStackTrace();
20          }
21          //processCommand();
22  
23      }
24  
25      private void processCommand() {
26          try {
27              Thread.sleep(0);
28          } catch (InterruptedException e) {
29              e.printStackTrace();
30          }
31      }
32  
33      @Override
34      public String toString(){
35          return this.command;
36      }
37  }