org.springframework.http.converter.json.SpringHandlerInstantiator Java Examples
The following examples show how to use
org.springframework.http.converter.json.SpringHandlerInstantiator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StandaloneMockMvcBuilderTests.java From spring-analysis-note with MIT License | 5 votes |
@Test // SPR-13375 @SuppressWarnings("rawtypes") public void springHandlerInstantiator() { TestStandaloneMockMvcBuilder builder = new TestStandaloneMockMvcBuilder(new PersonController()); builder.build(); SpringHandlerInstantiator instantiator = new SpringHandlerInstantiator(builder.wac.getAutowireCapableBeanFactory()); JsonSerializer serializer = instantiator.serializerInstance(null, null, UnknownSerializer.class); assertNotNull(serializer); }
Example #2
Source File: StandaloneMockMvcBuilderTests.java From java-technology-stack with MIT License | 5 votes |
@Test // SPR-13375 @SuppressWarnings("rawtypes") public void springHandlerInstantiator() { TestStandaloneMockMvcBuilder builder = new TestStandaloneMockMvcBuilder(new PersonController()); builder.build(); SpringHandlerInstantiator instantiator = new SpringHandlerInstantiator(builder.wac.getAutowireCapableBeanFactory()); JsonSerializer serializer = instantiator.serializerInstance(null, null, UnknownSerializer.class); assertNotNull(serializer); }
Example #3
Source File: StandaloneMockMvcBuilderTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test @SuppressWarnings("rawtypes") public void springHandlerInstantiator() { TestStandaloneMockMvcBuilder builder = new TestStandaloneMockMvcBuilder(new PersonController()); builder.build(); SpringHandlerInstantiator instantiator = new SpringHandlerInstantiator(builder.wac.getAutowireCapableBeanFactory()); JsonSerializer serializer = instantiator.serializerInstance(null, null, UnknownSerializer.class); assertNotNull(serializer); }
Example #4
Source File: RestConfiguration.java From taskana with Apache License 2.0 | 4 votes |
@Bean public HandlerInstantiator handlerInstantiator(ApplicationContext context) { return new SpringHandlerInstantiator(context.getAutowireCapableBeanFactory()); }