Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected AppDescriptor configure() {
- ConfigurableApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
- ResourceConfig config = new PackagesResourceConfig("com.yourcompany.packages", "org.codehaus.jackson.jaxrs");
- config.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
- config.getSingletons().add(new SpringComponentProviderFactory(config, applicationContext) );
- LowLevelAppDescriptor appDescriptor = new LowLevelAppDescriptor.Builder(config).build();
- return appDescriptor;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement