org.jboss.resteasy.plugins.providers.jaxb
Class AbstractJAXBContextFinder

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.jaxb.AbstractJAXBContextFinder
All Implemented Interfaces:
JAXBContextFinder
Direct Known Subclasses:
JsonJAXBContextFinder, XmlJAXBContextFinder

public abstract class AbstractJAXBContextFinder
extends java.lang.Object
implements JAXBContextFinder

Version:
$Revision: 1 $
Author:
Bill Burke

Nested Class Summary
static class AbstractJAXBContextFinder.CacheKey
           
 
Field Summary
protected static java.lang.String OBJECT_FACTORY_NAME
           
protected  Providers providers
           
 
Constructor Summary
AbstractJAXBContextFinder()
           
 
Method Summary
 javax.xml.bind.JAXBContext createContext(java.lang.annotation.Annotation[] parameterAnnotations, java.lang.Class... classes)
           
protected abstract  javax.xml.bind.JAXBContext createContextObject(java.lang.annotation.Annotation[] parameterAnnotations, java.lang.Class... classes)
           
static java.lang.Class<?> findDefaultObjectFactoryClass(java.lang.Class<?> type)
           
 javax.xml.bind.JAXBContext findProvidedJAXBContext(java.lang.Class<?> type, MediaType mediaType)
           
 JAXBContextFinder getContext(java.lang.Class<?> type)
           
static java.lang.String getPackageName(java.lang.Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.resteasy.plugins.providers.jaxb.JAXBContextFinder
findCacheContext, findCachedContext
 

Field Detail

OBJECT_FACTORY_NAME

protected static final java.lang.String OBJECT_FACTORY_NAME
See Also:
Constant Field Values

providers

@Context
protected Providers providers
Constructor Detail

AbstractJAXBContextFinder

public AbstractJAXBContextFinder()
Method Detail

findProvidedJAXBContext

public javax.xml.bind.JAXBContext findProvidedJAXBContext(java.lang.Class<?> type,
                                                          MediaType mediaType)
                                                   throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

getPackageName

public static java.lang.String getPackageName(java.lang.Class<?> type)

findDefaultObjectFactoryClass

public static java.lang.Class<?> findDefaultObjectFactoryClass(java.lang.Class<?> type)

createContextObject

protected abstract javax.xml.bind.JAXBContext createContextObject(java.lang.annotation.Annotation[] parameterAnnotations,
                                                                  java.lang.Class... classes)
                                                           throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

createContext

public javax.xml.bind.JAXBContext createContext(java.lang.annotation.Annotation[] parameterAnnotations,
                                                java.lang.Class... classes)
                                         throws javax.xml.bind.JAXBException
Specified by:
createContext in interface JAXBContextFinder
Throws:
javax.xml.bind.JAXBException

getContext

public JAXBContextFinder getContext(java.lang.Class<?> type)


Copyright © 2009. All Rights Reserved.