diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistar.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistrar.java similarity index 90% rename from spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistar.java rename to spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistrar.java index 4101ae032..03e5c2144 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistar.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/ProjectionDefinitionRegistrar.java @@ -36,19 +36,20 @@ * {@link RepositoryResourceMappings} as the latter need access to the former to discover mappings in the first place. * * @author Oliver Gierke + * @author Nam Jae Lee * @since 2.5 * @soundtrack Katinka - Ausverkauf */ -public class ProjectionDefinitionRegistar implements SmartInstantiationAwareBeanPostProcessor { +public class ProjectionDefinitionRegistrar implements SmartInstantiationAwareBeanPostProcessor { private final ObjectFactory config; /** - * Creates a new {@link ProjectionDefinitionRegistar} for the given {@link RepositoryRestConfiguration}. + * Creates a new {@link ProjectionDefinitionRegistrar} for the given {@link RepositoryRestConfiguration}. * * @param config must not be {@literal null}. */ - public ProjectionDefinitionRegistar(ObjectFactory config) { + public ProjectionDefinitionRegistrar(ObjectFactory config) { Assert.notNull(config, "RepositoryRestConfiguration must not be null"); diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java index d5c3fea75..96684b3a5 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/config/RepositoryRestMvcConfiguration.java @@ -161,6 +161,7 @@ * @author Mark Paluch * @author Christoph Strobl * @author Will Fleury + * @author Nam Jae Lee */ @Configuration(proxyBeanMethods = false) @EnableHypermediaSupport(type = { HypermediaType.HAL, HypermediaType.HAL_FORMS }) @@ -397,9 +398,9 @@ public T reposi } @Bean - public static ProjectionDefinitionRegistar projectionDefinitionRegistrar( + public static ProjectionDefinitionRegistrar projectionDefinitionRegistrar( ObjectFactory config) { - return new ProjectionDefinitionRegistar(config); + return new ProjectionDefinitionRegistrar(config); } @Bean