20 lines
425 B
Java
20 lines
425 B
Java
|
package org.gcube.common.authorization.client;
|
||
|
|
||
|
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)
|
||
|
context = JAXBContext.newInstance(AuthorizationEntry.class);
|
||
|
return context;
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|