package ch.elexis.core.services.es;

import javax.inject.Singleton;
import javax.ws.rs.core.FeatureContext;
import javax.ws.rs.ext.MessageBodyReader;
import javax.ws.rs.ext.MessageBodyWriter;

import org.glassfish.jersey.internal.inject.AbstractBinder;
import org.glassfish.jersey.internal.spi.ForcedAutoDiscoverable;

/**
 * JAXB {@link ForcedAutoDiscoverable} that registers all necessary JAXB features into the injection
 * manager directly.
 *
 * @author Jakub Podlesak
 */
public final class GsonAutoDiscoverable implements ForcedAutoDiscoverable {
	
	@Override
	public void configure(final FeatureContext context){
		context.register(new GsonMessagingBinder());
	}
	
	private class GsonMessagingBinder extends AbstractBinder {
		
		@Override
		protected void configure(){
			bind(GsonProvider.class).to(MessageBodyReader.class).in(Singleton.class);
			bind(GsonProvider.class).to(MessageBodyWriter.class).in(Singleton.class);
		}
	}
}
@@ -316,167 +316,8 @@
 e;%0A%0A
-/**%0A * JAXB %7B@link ForcedAutoDiscoverable%7D that registers all necessary JAXB features into the injection%0A * manager directly.%0A *%0A * @author Jakub Podlesak%0A */%0A
 publ

remove invlaid header comment from GsonAutoDiscoverable