org.apache.hadoop.chukwa.rest.resource
Class ViewContextResolver

java.lang.Object
  extended by org.apache.hadoop.chukwa.rest.resource.ViewContextResolver
All Implemented Interfaces:
javax.ws.rs.ext.ContextResolver<JAXBContext>

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


Field Summary
protected  Class<?>[] classTypes
           
protected  Set<String> jsonArray
           
 
Constructor Summary
ViewContextResolver()
           
 
Method Summary
 JAXBContext getContext(Class<?> objectType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classTypes

protected Class<?>[] classTypes

jsonArray

protected Set<String> jsonArray
Constructor Detail

ViewContextResolver

public ViewContextResolver()
                    throws Exception
Throws:
Exception
Method Detail

getContext

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


Copyright © ${year} The Apache Software Foundation