org.apache.hadoop.hbase.rest.provider
Class JAXBContextResolver

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.provider.JAXBContextResolver
All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<JAXBContext>

@Provider
public class JAXBContextResolver
extends Object
implements javax.ws.rs.ext.ContextResolver<JAXBContext>

Plumbing for hooking up Jersey's JSON entity body encoding and decoding support to JAXB. Modify how the context is created (by using e.g. a different configuration builder) to control how JSON is processed and created.


Constructor Summary
JAXBContextResolver()
           
 
Method Summary
 JAXBContext getContext(Class<?> objectType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBContextResolver

public JAXBContextResolver()
                    throws Exception
Throws:
Exception
Method Detail

getContext

public JAXBContext getContext(Class<?> objectType)
Specified by:
getContext in interface javax.ws.rs.ext.ContextResolver<JAXBContext>


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.