|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.modules.jersey.EnunciateJAXBContextResolver
@Provider public class EnunciateJAXBContextResolver
Context resolver for JAXB.
| Constructor Summary | |
|---|---|
EnunciateJAXBContextResolver()
|
|
| Method Summary | |
|---|---|
javax.xml.bind.JAXBContext |
getContext(java.lang.Class<?> objectType)
|
static java.lang.ClassLoader |
getDefaultClassLoader()
Return the default ClassLoader to use: typically the thread context ClassLoader, if available; the ClassLoader that loaded the EnunciateJAXBContextResolver class will be used as fallback. |
protected java.lang.Class |
loadClass(java.lang.String classname)
Loads a class from the classpath. |
protected java.lang.Object |
loadPrefixMapper()
|
protected java.io.InputStream |
loadResource(java.lang.String resource)
Loads a resource from the classpath. |
java.util.Set<java.lang.Class> |
loadTypes()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnunciateJAXBContextResolver()
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public java.util.Set<java.lang.Class> loadTypes()
protected java.lang.Object loadPrefixMapper()
public static java.lang.ClassLoader getDefaultClassLoader()
Call this method if you intend to use the thread context ClassLoader
in a scenario where you absolutely need a non-null ClassLoader reference:
for example, for class path resource loading (but not necessarily for
Class.forName, which accepts a null ClassLoader
reference as well).
null)Thread.getContextClassLoader()protected java.io.InputStream loadResource(java.lang.String resource)
resource - The resource to load.
protected java.lang.Class loadClass(java.lang.String classname)
throws java.lang.ClassNotFoundException
classname - The class name.
java.lang.ClassNotFoundExceptionpublic javax.xml.bind.JAXBContext getContext(java.lang.Class<?> objectType)
getContext in interface javax.ws.rs.ext.ContextResolver<javax.xml.bind.JAXBContext>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||