Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.kie.remote.services.rest.jaxb;
 
 import  javax.inject.Inject;
 import  javax.ws.rs.ext.ContextResolver;
 import  javax.ws.rs.ext.Provider;
 
 import  org.kie.api.runtime.KieSession;

We use this class in order to use (user) classes from Kjar deployments in serialization. Users may send inputs to the REST API that contain instances of these classes as parameters to KieSession operations.
@Provider
public class JaxbContextResolver implements ContextResolver<JAXBContext> {
    @Inject
    @Override
    public JAXBContext getContext(Class<?> type) {
        return ;
    }
New to GrepCode? Check out our FAQ X