package com.awplab.core.rest.jackson;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
import org.osgi.framework.Bundle;
import org.osgi.framework.wiring.BundleWiring;

import java.net.URL;
import java.util.*;

/**
 * Created by andyphillips404 on 12/19/15.
 */
public interface JacksonManagerService {

    void registerJacksonJaxrsProvider(JacksonJsonProvider)


    void registerModulesWithObjectMapper(ObjectMapper objectMapper);

    Set<JacksonModulesService> getModulesProviders();

    Set<JacksonJaxrsService> getJaxrsProviders();

    void updateChange();



}

@@ -366,68 +366,8 @@
  %7B%0A%0A
-    void registerJacksonJaxrsProvider(JacksonJsonProvider)%0A%0A
 %0A   
@@ -565,12 +565,876 @@
 nge();%0A%0A
+    static Set%3CString%3E getClassNames(Bundle bundle) %7B%0A        BundleWiring bundleWiring = bundle.adapt(BundleWiring.class);%0A        if (bundleWiring == null)%0A            return Collections.emptySet();%0A        Collection%3CString%3E resources = bundleWiring.listResources(%22/%22, %22*.class%22, BundleWiring.LISTRESOURCES_RECURSE);%0A        Set%3CString%3E classNamesOfCurrentBundle = new HashSet%3C%3E();%0A        for (String resource : resources) %7B%0A            URL localResource = bundle.getEntry(resource);%0A            // Bundle.getEntry() returns null if the resource is not located in the specific bundle%0A            if (localResource != null) %7B%0A                String className = resource.replaceAll(%22/%22, %22.%22).replaceAll(%22%5E(.*?)(%5C%5C.class)$%22, %22$1%22);%0A                classNamesOfCurrentBundle.add(className);%0A            %7D%0A        %7D%0A%0A        return classNamesOfCurrentBundle;%0A    %7D%0A
 %0A%0A%7D%0A

Fix Jackson Service