Cumulus4j API
(1.0.0)

org.cumulus4j.keymanager.back.shared
Class JAXBContextResolver

java.lang.Object
  extended by org.cumulus4j.keymanager.back.shared.JAXBContextResolver
All Implemented Interfaces:
ContextResolver<JAXBContext>

@Provider
public final class JAXBContextResolver
extends Object
implements ContextResolver<JAXBContext>

ContextResolver implementation telling JAXB all DTO classes that are required for the communication channel between app-server and key-manager.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Constructor Summary
JAXBContextResolver()
          Create a new instance of 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
Create a new instance of JAXBContextResolver. This is called by Jersey (the class is passed to it).

Throws:
Exception - in case creation of this resolver fails.
Method Detail

getContext

public JAXBContext getContext(Class<?> objectType)
Specified by:
getContext in interface ContextResolver<JAXBContext>

Cumulus4j API
(1.0.0)

Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.