2015-05-18 19:15:58 +02:00
|
|
|
package org.gcube.common.authorization.client;
|
|
|
|
|
2015-06-04 18:49:59 +02:00
|
|
|
|
2015-05-18 19:15:58 +02:00
|
|
|
import javax.xml.bind.JAXBContext;
|
|
|
|
import javax.xml.bind.JAXBException;
|
|
|
|
|
|
|
|
import org.gcube.common.authorization.library.AuthorizationEntry;
|
|
|
|
|
|
|
|
public class Binder {
|
|
|
|
|
|
|
|
private static JAXBContext context ;
|
|
|
|
|
|
|
|
public static JAXBContext getContext() throws JAXBException{
|
|
|
|
if (context==null)
|
2015-11-24 19:26:37 +01:00
|
|
|
context = JAXBContext.newInstance(AuthorizationEntry.class);
|
2015-05-18 19:15:58 +02:00
|
|
|
return context;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|