DATACMNS-1240 - Update copyright years to 2018.

Also, remove some trailing whitespaces and align outdated license header format.
This commit is contained in:
Mark Paluch
2018-01-01 08:59:42 +01:00
parent eb2163a29e
commit 51e7e1b7f5
632 changed files with 2269 additions and 2278 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2014 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -35,7 +35,7 @@ import org.springframework.web.util.UriComponentsBuilder;
/**
* Extension of {@link PageableHandlerMethodArgumentResolver} that also supports enhancing URIs using Spring HATEOAS
* support.
*
*
* @since 1.6
* @author Oliver Gierke
* @author Nick Williams
@@ -58,7 +58,7 @@ public class HateoasPageableHandlerMethodArgumentResolver extends PageableHandle
/**
* Creates a new {@link HateoasPageableHandlerMethodArgumentResolver} using the given
* {@link HateoasSortHandlerMethodArgumentResolver}..
*
*
* @param sortResolver
*/
public HateoasPageableHandlerMethodArgumentResolver(@Nullable HateoasSortHandlerMethodArgumentResolver sortResolver) {
@@ -69,7 +69,7 @@ public class HateoasPageableHandlerMethodArgumentResolver extends PageableHandle
/**
* Returns the template variable for the pagination parameters.
*
*
* @param parameter can be {@literal null}.
* @return
* @since 1.7

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2014 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ import org.springframework.web.util.UriComponentsBuilder;
/**
* Extension of {@link SortHandlerMethodArgumentResolver} that also supports enhancing URIs using Spring HATEOAS
* support.
*
*
* @since 1.6
* @author Oliver Gierke
* @author Thomas Darimont
@@ -42,7 +42,7 @@ public class HateoasSortHandlerMethodArgumentResolver extends SortHandlerMethodA
/**
* Returns the template variables for the sort parameter.
*
*
* @param parameter must not be {@literal null}.
* @return
* @since 1.7

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2017 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import java.lang.annotation.Target;
/**
* Annotation to explicitly declare a JSON Path expression on a projection interface.
*
*
* @author Oliver Gierke
* @soundtrack Andy McKee - RyLynn (Live book)
* @since 1.13
@@ -36,7 +36,7 @@ public @interface JsonPath {
/**
* The JSON Path expressions to be evaluated when the annotated method is invoked. If multiple ones are defined, the
* value of the first one actually present in the payload will be returned.
*
*
* @return
*/
String[] value();

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2017 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -62,7 +62,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor
/**
* Creates a new {@link JsonProjectingMethodInterceptorFactory} using the given {@link ObjectMapper}.
*
*
* @param mapper must not be {@literal null}.
*/
public JsonProjectingMethodInterceptorFactory(MappingProvider mappingProvider) {
@@ -77,7 +77,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor
this.context = JsonPath.using(build);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.projection.MethodInterceptorFactory#createMethodInterceptor(java.lang.Object, java.lang.Class)
*/
@@ -90,7 +90,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor
return new InputMessageProjecting(context);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.projection.MethodInterceptorFactory#supports(java.lang.Object, java.lang.Class)
*/
@@ -107,7 +107,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor
/**
* Returns whether the given type contains a method with a {@link org.springframework.data.web.JsonPath} annotation.
*
*
* @param type must not be {@literal null}.
* @return
*/
@@ -127,7 +127,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor
private final DocumentContext context;
/*
/*
* (non-Javadoc)
* @see org.aopalliance.intercept.MethodInterceptor#invoke(org.aopalliance.intercept.MethodInvocation)
*/
@@ -175,7 +175,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor
/**
* Returns the JSONPath expression to be used for the given method.
*
*
* @param method
* @return
*/
@@ -196,7 +196,7 @@ public class JsonProjectingMethodInterceptorFactory implements MethodInterceptor
private final ResolvableType type;
/*
/*
* (non-Javadoc)
* @see com.jayway.jsonpath.TypeRef#getType()
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -64,7 +64,7 @@ class MapDataBinder extends WebDataBinder {
/**
* Creates a new {@link MapDataBinder} for the given type and {@link ConversionService}.
*
*
* @param type target type to detect property that need to be bound.
* @param conversionService the {@link ConversionService} to be used to preprocess values.
*/
@@ -76,7 +76,7 @@ class MapDataBinder extends WebDataBinder {
this.conversionService = conversionService;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.validation.DataBinder#getTarget()
*/
@@ -94,7 +94,7 @@ class MapDataBinder extends WebDataBinder {
return (Map<String, Object>) target;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.validation.DataBinder#getPropertyAccessor()
*/
@@ -120,7 +120,7 @@ class MapDataBinder extends WebDataBinder {
private final @NonNull Map<String, Object> map;
private final @NonNull ConversionService conversionService;
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.PropertyAccessor#isReadableProperty(java.lang.String)
*/
@@ -129,7 +129,7 @@ class MapDataBinder extends WebDataBinder {
throw new UnsupportedOperationException();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.PropertyAccessor#isWritableProperty(java.lang.String)
*/
@@ -143,7 +143,7 @@ class MapDataBinder extends WebDataBinder {
}
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.PropertyAccessor#getPropertyTypeDescriptor(java.lang.String)
*/
@@ -153,7 +153,7 @@ class MapDataBinder extends WebDataBinder {
throw new UnsupportedOperationException();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.AbstractPropertyAccessor#getPropertyValue(java.lang.String)
*/
@@ -163,7 +163,7 @@ class MapDataBinder extends WebDataBinder {
throw new UnsupportedOperationException();
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.AbstractPropertyAccessor#setPropertyValue(java.lang.String, java.lang.Object)
*/
@@ -229,7 +229,7 @@ class MapDataBinder extends WebDataBinder {
/**
* A special {@link MapAccessor} that traverses properties on the configured type to automatically create nested Map
* and collection values as necessary.
*
*
* @author Oliver Gierke
* @since 1.10
*/
@@ -240,7 +240,7 @@ class MapDataBinder extends WebDataBinder {
/**
* Creates a new {@link PropertyTraversingMapAccessor} for the given type and {@link ConversionService}.
*
*
* @param type must not be {@literal null}.
* @param conversionService must not be {@literal null}.
*/
@@ -262,7 +262,7 @@ class MapDataBinder extends WebDataBinder {
return true;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.context.expression.MapAccessor#read(org.springframework.expression.EvaluationContext, java.lang.Object, java.lang.String)
*/
@@ -293,7 +293,7 @@ class MapDataBinder extends WebDataBinder {
/**
* Returns the type descriptor for the given {@link PropertyPath} and empty value for that path.
*
*
* @param path must not be {@literal null}.
* @param emptyValue must not be {@literal null}.
* @return

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014 the original author or authors.
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ import org.springframework.web.util.UriComponents;
/**
* Custom {@link PagedResourcesAssembler} that is aware of the {@link MethodParameter} it shall create links for.
*
*
* @author Oliver Gierke
* @since 1.7
*/
@@ -35,7 +35,7 @@ class MethodParameterAwarePagedResourcesAssembler<T> extends PagedResourcesAssem
/**
* Creates a new {@link MethodParameterAwarePagedResourcesAssembler} using the given {@link MethodParameter},
* {@link HateoasPageableHandlerMethodArgumentResolver} and base URI.
*
*
* @param parameter must not be {@literal null}.
* @param resolver can be {@literal null}.
* @param baseUri can be {@literal null}.
@@ -49,7 +49,7 @@ class MethodParameterAwarePagedResourcesAssembler<T> extends PagedResourcesAssem
this.parameter = parameter;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.data.web.PagedResourcesAssembler#getMethodParameter()
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import org.springframework.data.web.SortDefault.SortDefaults;
* Annotation to set defaults when injecting a {@link org.springframework.data.domain.Pageable} into a controller
* method. Instead of configuring {@link #sort()} and {@link #direction()} you can also use {@link SortDefault} or
* {@link SortDefaults}.
*
*
* @since 1.6
* @author Oliver Gierke
*/
@@ -40,7 +40,7 @@ public @interface PageableDefault {
/**
* Alias for {@link #size()}. Prefer to use the {@link #size()} method as it makes the annotation declaration more
* expressive and you'll probably want to configure the {@link #page()} anyway.
*
*
* @return
*/
int value() default 10;
@@ -59,14 +59,14 @@ public @interface PageableDefault {
/**
* The properties to sort by by default. If unset, no sorting will be applied at all.
*
*
* @return
*/
String[] sort() default {};
/**
* The direction to sort by. Defaults to {@link Direction#ASC}.
*
*
* @return
*/
Direction direction() default Direction.ASC;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ import org.springframework.web.method.support.ModelAndViewContainer;
* Extracts paging information from web requests and thus allows injecting {@link Pageable} instances into controller
* methods. Request properties to be parsed can be configured. Default configuration uses request parameters beginning
* with {@link #DEFAULT_PAGE_PARAMETER}{@link #DEFAULT_QUALIFIER_DELIMITER}.
*
*
* @since 1.6
* @author Oliver Gierke
* @author Nick Williams
@@ -73,7 +73,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Constructs an instance of this resolver with the specified {@link SortHandlerMethodArgumentResolver}.
*
*
* @param sortResolver the sort resolver to use
*/
public PageableHandlerMethodArgumentResolver(SortHandlerMethodArgumentResolver sortResolver) {
@@ -99,7 +99,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
* handed into them in case no {@link Pageable} data can be found in the request. Note, that doing so will require you
* supply bot the page <em>and</em> the size parameter with the requests as there will be no default for any of the
* parameters available.
*
*
* @param fallbackPageable the {@link Pageable} to be used as general fallback.
*/
public void setFallbackPageable(Pageable fallbackPageable) {
@@ -111,7 +111,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Returns whether the given {@link Pageable} is the fallback one.
*
*
* @param pageable can be {@literal null}.
* @since 1.9
* @return
@@ -123,7 +123,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Configures the maximum page size to be accepted. This allows to put an upper boundary of the page size to prevent
* potential attacks trying to issue an {@link OutOfMemoryError}. Defaults to {@link #DEFAULT_MAX_PAGE_SIZE}.
*
*
* @param maxPageSize the maxPageSize to set
*/
public void setMaxPageSize(int maxPageSize) {
@@ -133,7 +133,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Retrieves the maximum page size to be accepted. This allows to put an upper boundary of the page size to prevent
* potential attacks trying to issue an {@link OutOfMemoryError}. Defaults to {@link #DEFAULT_MAX_PAGE_SIZE}.
*
*
* @return the maximum page size allowed.
*/
protected int getMaxPageSize() {
@@ -142,7 +142,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Configures the parameter name to be used to find the page number in the request. Defaults to {@code page}.
*
*
* @param pageParameterName the parameter name to be used, must not be {@literal null} or empty.
*/
public void setPageParameterName(String pageParameterName) {
@@ -153,7 +153,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Retrieves the parameter name to be used to find the page number in the request. Defaults to {@code page}.
*
*
* @return the parameter name to be used, never {@literal null} or empty.
*/
protected String getPageParameterName() {
@@ -162,7 +162,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Configures the parameter name to be used to find the page size in the request. Defaults to {@code size}.
*
*
* @param sizeParameterName the parameter name to be used, must not be {@literal null} or empty.
*/
public void setSizeParameterName(String sizeParameterName) {
@@ -173,7 +173,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Retrieves the parameter name to be used to find the page size in the request. Defaults to {@code size}.
*
*
* @return the parameter name to be used, never {@literal null} or empty.
*/
protected String getSizeParameterName() {
@@ -183,7 +183,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Configures a general prefix to be prepended to the page number and page size parameters. Useful to namespace the
* property names used in case they are clashing with ones used by your application. By default, no prefix is used.
*
*
* @param prefix the prefix to be used or {@literal null} to reset to the default.
*/
public void setPrefix(String prefix) {
@@ -193,7 +193,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* The delimiter to be used between the qualifier and the actual page number and size properties. Defaults to
* {@code _}. So a qualifier of {@code foo} will result in a page number parameter of {@code foo_page}.
*
*
* @param qualifierDelimiter the delimiter to be used or {@literal null} to reset to the default.
*/
public void setQualifierDelimiter(String qualifierDelimiter) {
@@ -204,7 +204,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
* Configures whether to expose and assume 1-based page number indexes in the request parameters. Defaults to
* {@literal false}, meaning a page number of 0 in the request equals the first page. If this is set to
* {@literal true}, a page number of 1 in the request will be considered the first page.
*
*
* @param oneIndexedParameters the oneIndexedParameters to set
*/
public void setOneIndexedParameters(boolean oneIndexedParameters) {
@@ -215,14 +215,14 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
* Indicates whether to expose and assume 1-based page number indexes in the request parameters. Defaults to
* {@literal false}, meaning a page number of 0 in the request equals the first page. If this is set to
* {@literal true}, a page number of 1 in the request will be considered the first page.
*
*
* @return whether to assume 1-based page number indexes in the request parameters.
*/
protected boolean isOneIndexedParameters() {
return this.oneIndexedParameters;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter)
*/
@@ -272,7 +272,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Returns the name of the request parameter to find the {@link Pageable} information in. Inspects the given
* {@link MethodParameter} for {@link Qualifier} present and prefixes the given source parameter name with it.
*
*
* @param source the basic parameter name.
* @param parameter the {@link MethodParameter} potentially qualified.
* @return the name of the request parameter.
@@ -322,7 +322,7 @@ public class PageableHandlerMethodArgumentResolver implements PageableArgumentRe
/**
* Tries to parse the given {@link String} into an integer and applies the given boundaries. Will return 0 if the
* {@link String} cannot be parsed.
*
*
* @param parameter the parameter value.
* @param upper the upper bound to be applied.
* @param shiftIndex whether to shift the index if {@link #oneIndexedParameters} is set to true.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@ import org.springframework.web.util.UriComponentsBuilder;
/**
* {@link ResourceAssembler} to easily convert {@link Page} instances into {@link PagedResources}.
*
*
* @since 1.6
* @author Oliver Gierke
* @author Nick Williams
@@ -61,7 +61,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
* Creates a new {@link PagedResourcesAssembler} using the given {@link PageableHandlerMethodArgumentResolver} and
* base URI. If the former is {@literal null}, a default one will be created. If the latter is {@literal null}, calls
* to {@link #toResource(Page)} will use the current request's URI to build the relevant previous and next links.
*
*
* @param resolver can be {@literal null}.
* @param baseUri can be {@literal null}.
*/
@@ -76,7 +76,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
* Configures whether to always add {@code first} and {@code last} links to the {@link PagedResources} created.
* Defaults to {@literal false} which means that {@code first} and {@code last} links only appear in conjunction with
* {@code prev} and {@code next} links.
*
*
* @param forceFirstAndLastRels whether to always add {@code first} and {@code last} links to the
* {@link PagedResources} created.
* @since 1.11
@@ -85,7 +85,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
this.forceFirstAndLastRels = forceFirstAndLastRels;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.hateoas.ResourceAssembler#toResource(java.lang.Object)
*/
@@ -99,7 +99,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
* Creates a new {@link PagedResources} by converting the given {@link Page} into a {@link PageMetadata} instance and
* wrapping the contained elements into {@link Resource} instances. Will add pagination links based on the given the
* self link.
*
*
* @param page must not be {@literal null}.
* @param selfLink must not be {@literal null}.
* @return
@@ -111,7 +111,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
/**
* Creates a new {@link PagedResources} by converting the given {@link Page} into a {@link PageMetadata} instance and
* using the given {@link ResourceAssembler} to turn elements of the {@link Page} into resources.
*
*
* @param page must not be {@literal null}.
* @param assembler must not be {@literal null}.
* @return
@@ -124,7 +124,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
* Creates a new {@link PagedResources} by converting the given {@link Page} into a {@link PageMetadata} instance and
* using the given {@link ResourceAssembler} to turn elements of the {@link Page} into resources. Will add pagination
* links based on the given the self link.
*
*
* @param page must not be {@literal null}.
* @param assembler must not be {@literal null}.
* @param link must not be {@literal null}.
@@ -140,7 +140,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
/**
* Creates a {@link PagedResources} with an empt collection {@link EmbeddedWrapper} for the given domain type.
*
*
* @param page must not be {@literal null}, content must be empty.
* @param type must not be {@literal null}.
* @return
@@ -152,7 +152,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
/**
* Creates a {@link PagedResources} with an empt collection {@link EmbeddedWrapper} for the given domain type.
*
*
* @param page must not be {@literal null}, content must be empty.
* @param type must not be {@literal null}.
* @param link must not be {@literal null}.
@@ -180,7 +180,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
/**
* Creates the {@link PagedResources} to be equipped with pagination links downstream.
*
*
* @param resources the original page's elements mapped into {@link ResourceSupport} instances.
* @param metadata the calculated {@link PageMetadata}, must not be {@literal null}.
* @param page the original page handed to the assembler, must not be {@literal null}.
@@ -249,7 +249,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
/**
* Returns a default URI string either from the one configured on assembler creatino or by looking it up from the
* current request.
*
*
* @return
*/
private UriTemplate getUriTemplate(Optional<Link> baseLink) {
@@ -259,7 +259,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
/**
* Creates a {@link Link} with the given rel that will be based on the given {@link UriTemplate} but enriched with the
* values of the given {@link Pageable} (if not {@literal null}).
*
*
* @param base must not be {@literal null}.
* @param pageable can be {@literal null}
* @param rel must not be {@literal null} or empty.
@@ -276,7 +276,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
/**
* Return the {@link MethodParameter} to be used to potentially qualify the paging and sorting request parameters to.
* Default implementations returns {@literal null}, which means the parameters will not be qualified.
*
*
* @return
* @since 1.7
*/
@@ -287,7 +287,7 @@ public class PagedResourcesAssembler<T> implements ResourceAssembler<Page<T>, Pa
/**
* Creates a new {@link PageMetadata} instance from the given {@link Page}.
*
*
* @param page must not be {@literal null}.
* @return
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ import org.springframework.web.util.UriComponentsBuilder;
/**
* {@link HandlerMethodArgumentResolver} to allow injection of {@link PagedResourcesAssembler} into Spring MVC
* controller methods.
*
*
* @since 1.6
* @author Oliver Gierke
* @author Nick Williams
@@ -58,7 +58,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg
/**
* Creates a new {@link PagedResourcesAssemblerArgumentResolver} using the given
* {@link PageableHandlerMethodArgumentResolver} and {@link MethodLinkBuilderFactory}.
*
*
* @param resolver can be {@literal null}.
* @param linkBuilderFactory can be {@literal null}, will be defaulted to a {@link ControllerLinkBuilderFactory}.
*/
@@ -69,7 +69,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg
this.linkBuilderFactory = linkBuilderFactory == null ? new ControllerLinkBuilderFactory() : linkBuilderFactory;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter)
*/
@@ -78,7 +78,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg
return PagedResourcesAssembler.class.equals(parameter.getParameterType());
}
/*
/*
* (non-Javadoc)
* @see org.springframework.web.method.support.HandlerMethodArgumentResolver#resolveArgument(org.springframework.core.MethodParameter, org.springframework.web.method.support.ModelAndViewContainer, org.springframework.web.context.request.NativeWebRequest, org.springframework.web.bind.support.WebDataBinderFactory)
*/
@@ -99,7 +99,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg
/**
* Eagerly resolve a base URI for the given {@link MethodParameter} to be handed to the assembler.
*
*
* @param parameter must not be {@literal null}.
* @return the {@link UriComponents} representing the base URI, or {@literal null} if it can't be resolved eagerly.
*/
@@ -117,7 +117,7 @@ public class PagedResourcesAssemblerArgumentResolver implements HandlerMethodArg
/**
* Returns finds the {@link MethodParameter} for a {@link Pageable} instance matching the given
* {@link MethodParameter} requesting a {@link PagedResourcesAssembler}.
*
*
* @param parameter must not be {@literal null}.
* @return
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@ import java.lang.annotation.Target;
/**
* Annotation to mark projection interfaces that are supposed to be used as projection interface to bind request or
* response payloads to.
*
*
* @author Oliver Gierke
* @soundtrack
* @since 1.13

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2017 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -41,7 +41,7 @@ import com.jayway.jsonpath.spi.mapper.JacksonMappingProvider;
/**
* {@link HttpMessageConverter} implementation to enable projected JSON binding to interfaces annotated with
* {@link ProjectedPayload}.
*
*
* @author Oliver Gierke
* @author Christoph Strobl
* @soundtrack Richard Spaven - Ice Is Nice (Spaven's 5ive)
@@ -62,7 +62,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM
/**
* Creates a new {@link ProjectingJackson2HttpMessageConverter} for the given {@link ObjectMapper}.
*
*
* @param mapper must not be {@literal null}.
*/
public ProjectingJackson2HttpMessageConverter(ObjectMapper mapper) {
@@ -75,7 +75,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM
/**
* Creates a new {@link SpelAwareProxyProjectionFactory} with the {@link JsonProjectingMethodInterceptorFactory}
* registered for the given {@link ObjectMapper}.
*
*
* @param mapper must not be {@literal null}.
* @return
*/
@@ -90,7 +90,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM
return projectionFactory;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader)
*/
@@ -99,7 +99,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM
projectionFactory.setBeanClassLoader(classLoader);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory)
*/
@@ -108,7 +108,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM
projectionFactory.setBeanFactory(beanFactory);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter#canRead(java.lang.reflect.Type, java.lang.Class, org.springframework.http.MediaType)
*/
@@ -133,7 +133,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM
return result;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter#canWrite(java.lang.Class, org.springframework.http.MediaType)
*/
@@ -142,7 +142,7 @@ public class ProjectingJackson2HttpMessageConverter extends MappingJackson2HttpM
return false;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter#read(java.lang.reflect.Type, java.lang.Class, org.springframework.http.HttpInputMessage)
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver;
/**
* {@link HandlerMethodArgumentResolver} to create Proxy instances for interface based controller method parameters.
*
*
* @author Oliver Gierke
* @since 1.10
*/
@@ -53,7 +53,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP
/**
* Creates a new {@link PageableHandlerMethodArgumentResolver} using the given {@link ConversionService} and the
* {@link ModelAttribute} annotation not required.
*
*
* @param conversionService must not be {@literal null}.
* @deprecated use {@link #ProxyingHandlerMethodArgumentResolver(ObjectFactory, boolean)} instead.
*/
@@ -64,7 +64,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP
/**
* Creates a new {@link PageableHandlerMethodArgumentResolver} using the given {@link ConversionService}.
*
*
* @param conversionService must not be {@literal null}.
*/
public ProxyingHandlerMethodArgumentResolver(ObjectFactory<ConversionService> conversionService,
@@ -76,7 +76,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP
this.conversionService = conversionService;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory)
*/
@@ -85,7 +85,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP
this.proxyFactory.setBeanFactory(beanFactory);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader)
*/
@@ -94,7 +94,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP
this.proxyFactory.setBeanClassLoader(classLoader);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter)
*/
@@ -127,7 +127,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP
return !IGNORED_PACKAGES.stream().anyMatch(it -> packageName.startsWith(it));
}
/*
/*
* (non-Javadoc)
* @see org.springframework.web.method.annotation.ModelAttributeMethodProcessor#createAttribute(java.lang.String, org.springframework.core.MethodParameter, org.springframework.web.bind.support.WebDataBinderFactory, org.springframework.web.context.request.NativeWebRequest)
*/
@@ -141,7 +141,7 @@ public class ProxyingHandlerMethodArgumentResolver extends ModelAttributeMethodP
return proxyFactory.createProjection(parameter.getParameterType(), binder.getTarget());
}
/*
/*
* (non-Javadoc)
* @see org.springframework.web.method.annotation.ModelAttributeMethodProcessor#bindRequestParameters(org.springframework.web.bind.WebDataBinder, org.springframework.web.context.request.NativeWebRequest)
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ public interface SortArgumentResolver extends HandlerMethodArgumentResolver {
/**
* Resolves a {@link Sort} method parameter into an argument value from a given request.
*
*
* @param parameter the method parameter to resolve. This parameter must have previously been passed to
* {@link #supportsParameter} which must have returned {@code true}.
* @param mavContainer the ModelAndViewContainer for the current request

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import org.springframework.data.domain.Sort.Direction;
/**
* Annotation to define the default {@link Sort} options to be used when injecting a {@link Sort} instance into a
* controller handler method.
*
*
* @since 1.6
* @author Oliver Gierke
*/
@@ -38,28 +38,28 @@ public @interface SortDefault {
/**
* Alias for {@link #sort()} to make a declaration configuring fields only more concise.
*
*
* @return
*/
String[] value() default {};
/**
* The properties to sort by by default. If unset, no sorting will be applied at all.
*
*
* @return
*/
String[] sort() default {};
/**
* The direction to sort by. Defaults to {@link Direction#ASC}.
*
*
* @return
*/
Direction direction() default Direction.ASC;
/**
* Wrapper annotation to allow declaring multiple {@link SortDefault} annotations on a method parameter.
*
*
* @since 1.6
* @author Oliver Gierke
*/
@@ -70,7 +70,7 @@ public @interface SortDefault {
/**
* The individual {@link SortDefault} declarations to be sorted by.
*
*
* @return
*/
SortDefault[] value();

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@ import org.springframework.web.method.support.ModelAndViewContainer;
/**
* {@link HandlerMethodArgumentResolver} to automatically create {@link Sort} instances from request parameters or
* {@link SortDefault} annotations.
*
*
* @since 1.6
* @author Oliver Gierke
* @author Thomas Darimont
@@ -63,7 +63,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Configure the request parameter to lookup sort information from. Defaults to {@code sort}.
*
*
* @param sortParameter must not be {@literal null} or empty.
*/
public void setSortParameter(String sortParameter) {
@@ -75,7 +75,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Configures the delimiter used to separate property references and the direction to be sorted by. Defaults to
* {@code}, which means sort values look like this: {@code firstname,lastname,asc}.
*
*
* @param propertyDelimiter must not be {@literal null} or empty.
*/
public void setPropertyDelimiter(String propertyDelimiter) {
@@ -87,14 +87,14 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Configures the delimiter used to separate the qualifier from the sort parameter. Defaults to {@code _}, so a
* qualified sort property would look like {@code qualifier_sort}.
*
*
* @param qualifierDelimiter the qualifier delimiter to be used or {@literal null} to reset to the default.
*/
public void setQualifierDelimiter(String qualifierDelimiter) {
this.qualifierDelimiter = qualifierDelimiter == null ? DEFAULT_QUALIFIER_DELIMITER : qualifierDelimiter;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.web.method.support.HandlerMethodArgumentResolver#supportsParameter(org.springframework.core.MethodParameter)
*/
@@ -130,7 +130,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
* Reads the default {@link Sort} to be used from the given {@link MethodParameter}. Rejects the parameter if both an
* {@link SortDefaults} and {@link SortDefault} annotation is found as we cannot build a reliable {@link Sort}
* instance then (property ordering).
*
*
* @param parameter will never be {@literal null}.
* @return the default {@link Sort} instance derived from the parameter annotations or the configured fallback-sort
* {@link #setFallbackSort(Sort)}.
@@ -167,7 +167,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Creates a new {@link Sort} instance from the given {@link SortDefault} or appends it to the given {@link Sort}
* instance if it's not {@literal null}.
*
*
* @param sortDefault
* @param sortOrNull
* @return
@@ -185,7 +185,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Returns the sort parameter to be looked up from the request. Potentially applies qualifiers to it.
*
*
* @param parameter can be {@literal null}.
* @return
*/
@@ -206,7 +206,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
* Parses the given sort expressions into a {@link Sort} instance. The implementation expects the sources to be a
* concatenation of Strings using the given delimiter. If the last element can be parsed into a {@link Direction} it's
* considered a {@link Direction} and a simple property otherwise.
*
*
* @param source will never be {@literal null}.
* @param delimiter the delimiter to be used to split up the source elements, will never be {@literal null}.
* @return
@@ -248,7 +248,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Folds the given {@link Sort} instance into a {@link List} of sort expressions, accumulating {@link Order} instances
* of the same direction into a single expression if they are in order.
*
*
* @param sort must not be {@literal null}.
* @return
*/
@@ -277,7 +277,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Folds the given {@link Sort} instance into two expressions. The first being the property list, the second being the
* direction.
*
*
* @throws IllegalArgumentException if a {@link Sort} with multiple {@link Direction}s has been handed in.
* @param sort must not be {@literal null}.
* @return
@@ -306,7 +306,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Helper to easily build request parameter expressions for {@link Sort} instances.
*
*
* @author Oliver Gierke
*/
class ExpressionBuilder {
@@ -316,7 +316,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Sets up a new {@link ExpressionBuilder} for properties to be sorted in the given {@link Direction}.
*
*
* @param direction must not be {@literal null}.
*/
public ExpressionBuilder(Direction direction) {
@@ -327,7 +327,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Returns whether the given {@link Order} has the same direction as the current {@link ExpressionBuilder}.
*
*
* @param order must not be {@literal null}.
* @return
*/
@@ -337,7 +337,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Adds the given property to the expression to be built.
*
*
* @param property
*/
public void add(String property) {
@@ -347,7 +347,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
/**
* Dumps the expression currently in build into the given {@link List} of {@link String}s. Will only dump it in case
* there are properties piled up currently.
*
*
* @param expressions
* @return
*/
@@ -370,7 +370,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
* <p>
* If you set this to {@literal null}, be aware that you controller methods will get {@literal null} handed into them
* in case no {@link Sort} data can be found in the request.
*
*
* @param fallbackSort the {@link Sort} to be used as general fallback.
*/
public void setFallbackSort(Sort fallbackSort) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ import org.springframework.util.ObjectUtils;
/**
* Helper class to ease sharing code between legacy {@link PageableArgumentResolver} and
* {@link PageableHandlerMethodArgumentResolver}.
*
*
* @author Oliver Gierke
*/
abstract class SpringDataAnnotationUtils {
@@ -39,7 +39,7 @@ abstract class SpringDataAnnotationUtils {
/**
* Asserts uniqueness of all {@link Pageable} parameters of the method of the given {@link MethodParameter}.
*
*
* @param parameter must not be {@literal null}.
*/
public static void assertPageableUniqueness(MethodParameter parameter) {
@@ -58,7 +58,7 @@ abstract class SpringDataAnnotationUtils {
/**
* Returns whether the given {@link Method} has more than one {@link Pageable} parameter.
*
*
* @param method must not be {@literal null}.
* @return
*/
@@ -83,7 +83,7 @@ abstract class SpringDataAnnotationUtils {
/**
* Returns the value of the given specific property of the given annotation. If the value of that property is the
* properties default, we fall back to the value of the {@code value} attribute.
*
*
* @param annotation must not be {@literal null}.
* @param property must not be {@literal null} or empty.
* @return
@@ -108,7 +108,7 @@ abstract class SpringDataAnnotationUtils {
/**
* Asserts that every {@link Pageable} parameter of the given parameters carries an {@link Qualifier} annotation to
* distinguish them from each other.
*
*
* @param parameterTypes must not be {@literal null}.
* @param annotations must not be {@literal null}.
*/
@@ -139,7 +139,7 @@ abstract class SpringDataAnnotationUtils {
/**
* Returns a {@link Qualifier} annotation from the given array of {@link Annotation}s. Returns {@literal null} if the
* array does not contain a {@link Qualifier} annotation.
*
*
* @param annotations must not be {@literal null}.
* @return
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015-2017 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ import org.xmlbeam.XBProjector;
/**
* A read-only {@link HttpMessageConverter} to create XMLBeam-based projection instances for interfaces.
*
*
* @author Oliver Gierke
* @author Christoph Strobl
* @see <a href="http://www.xmlbeam.org">http://www.xmlbeam.org</a>
@@ -76,7 +76,7 @@ public class XmlBeamHttpMessageConverter extends AbstractHttpMessageConverter<Ob
return result;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.http.converter.HttpMessageConverter#canWrite(java.lang.Class, org.springframework.http.MediaType)
*/
@@ -85,7 +85,7 @@ public class XmlBeamHttpMessageConverter extends AbstractHttpMessageConverter<Ob
return false;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.http.converter.AbstractHttpMessageConverter#readInternal(java.lang.Class, org.springframework.http.HttpInputMessage)
*/
@@ -95,7 +95,7 @@ public class XmlBeamHttpMessageConverter extends AbstractHttpMessageConverter<Ob
return projectionFactory.io().stream(inputMessage.getBody()).read(clazz);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.http.converter.AbstractHttpMessageConverter#writeInternal(java.lang.Object, org.springframework.http.HttpOutputMessage)
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -59,7 +59,7 @@ import org.springframework.util.ClassUtils;
* <li>{@link org.springframework.data.web.SortHandlerMethodArgumentResolver} - for injection of
* {@link org.springframework.data.web.PagedResourcesAssembler} into controller methods</li>
* <ul>
*
*
* @since 1.6
* @see SpringDataWebConfiguration
* @see HateoasAwareSpringDataWebConfiguration
@@ -77,7 +77,7 @@ public @interface EnableSpringDataWebSupport {
* classpath. We need to register the HATEOAS specific class first as apparently only the first class implementing
* {@link org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport} gets callbacks invoked (see
* https://jira.springsource.org/browse/SPR-10565).
*
*
* @author Oliver Gierke
* @author Jens Schauder
*/
@@ -85,7 +85,7 @@ public @interface EnableSpringDataWebSupport {
private Optional<ClassLoader> resourceLoader = Optional.empty();
/*
/*
* (non-Javadoc)
* @see org.springframework.context.ResourceLoaderAware#setResourceLoader(org.springframework.core.io.ResourceLoader)
*/
@@ -94,7 +94,7 @@ public @interface EnableSpringDataWebSupport {
this.resourceLoader = Optional.of(resourceLoader).map(ResourceLoader::getClassLoader);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.context.annotation.ImportSelector#selectImports(org.springframework.core.type.AnnotationMetadata)
*/
@@ -129,7 +129,7 @@ public @interface EnableSpringDataWebSupport {
*/
static class QuerydslActivator implements ImportSelector {
/*
/*
* (non-Javadoc)
* @see org.springframework.context.annotation.ImportSelector#selectImports(org.springframework.core.type.AnnotationMetadata)
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver;
/**
* JavaConfig class to register {@link PagedResourcesAssembler} and {@link PagedResourcesAssemblerArgumentResolver}.
*
*
* @since 1.6
* @author Oliver Gierke
* @author Nick Williams
@@ -87,7 +87,7 @@ public class HateoasAwareSpringDataWebConfiguration extends SpringDataWebConfigu
return new PagedResourcesAssemblerArgumentResolver(pageableResolver(), null);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#addArgumentResolvers(java.util.List)
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2017 the original author or authors.
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2017 the original author or authors.
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandl
/**
* Configuration class to register a {@link BeanPostProcessor} to augment {@link RequestMappingHandlerAdapter} with a
* {@link ProxyingHandlerMethodArgumentResolver}.
*
*
* @author Oliver Gierke
* @soundtrack Apparat With Soap & Skin - Goodbye (Dark Theme Song - https://www.youtube.com/watch?v=66VnOdk6oto)
*/
@@ -47,7 +47,7 @@ public class ProjectingArgumentResolverRegistrar {
* Registers a {@link BeanPostProcessor} to modify {@link RequestMappingHandlerAdapter} beans in the application
* context to get a {@link ProxyingHandlerMethodArgumentResolver} configured as first
* {@link HandlerMethodArgumentResolver}.
*
*
* @param conversionService the Spring MVC {@link ConversionService} in a lazy fashion, so that its initialization is
* not triggered yet.
* @return
@@ -73,7 +73,7 @@ public class ProjectingArgumentResolverRegistrar {
/**
* A {@link BeanPostProcessor} to modify {@link RequestMappingHandlerAdapter} beans in the application context to
* get a {@link ProxyingHandlerMethodArgumentResolver} configured as first {@link HandlerMethodArgumentResolver}.
*
*
* @param conversionService the Spring MVC {@link ConversionService} in a lazy fashion, so that its initialization
* is not triggered yet.
*/
@@ -82,7 +82,7 @@ public class ProjectingArgumentResolverRegistrar {
this.resolver = new ProxyingHandlerMethodArgumentResolver(conversionService, false);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.BeanFactoryAware#setBeanFactory(org.springframework.beans.factory.BeanFactory)
*/
@@ -91,7 +91,7 @@ public class ProjectingArgumentResolverRegistrar {
this.resolver.setBeanFactory(beanFactory);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader)
*/
@@ -100,7 +100,7 @@ public class ProjectingArgumentResolverRegistrar {
this.resolver.setBeanClassLoader(classLoader);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.config.BeanPostProcessor#postProcessBeforeInitialization(java.lang.Object, java.lang.String)
*/
@@ -110,7 +110,7 @@ public class ProjectingArgumentResolverRegistrar {
return bean;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.config.BeanPostProcessor#postProcessAfterInitialization(java.lang.Object, java.lang.String)
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ import com.querydsl.core.types.Predicate;
/**
* Querydsl-specific web configuration for Spring Data. Registers a {@link HandlerMethodArgumentResolver} that builds up
* {@link Predicate}s from web requests.
*
*
* @author Oliver Gierke
* @since 1.11
* @soundtrack Anika Nilles - Alter Ego
@@ -49,7 +49,7 @@ public class QuerydslWebConfiguration implements WebMvcConfigurer {
/**
* Default {@link QuerydslPredicateArgumentResolver} to create Querydsl {@link Predicate} instances for Spring MVC
* controller methods.
*
*
* @return
*/
@Lazy
@@ -64,7 +64,7 @@ public class QuerydslWebConfiguration implements WebMvcConfigurer {
return new QuerydslBindingsFactory(SimpleEntityPathResolver.INSTANCE);
}
/*
/*
* (non-Javadoc)
* @see org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter#addArgumentResolvers(java.util.List)
*/

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2017 the original author or authors.
* Copyright 2017-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2016 the original author or authors.
* Copyright 2014-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ import org.springframework.data.geo.GeoModule;
/**
* JavaConfig class to export Jackson specific configuration.
*
*
* @author Oliver Gierke
*/
public class SpringDataJacksonConfiguration implements SpringDataJacksonModules {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016 the original author or authors.
* Copyright 2016-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2017 the original author or authors.
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -76,7 +76,7 @@ public class SpringDataWebConfiguration implements WebMvcConfigurer, BeanClassLo
this.conversionService = conversionService;
}
/*
/*
* (non-Javadoc)
* @see org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang.ClassLoader)
*/
@@ -189,7 +189,7 @@ public class SpringDataWebConfiguration implements WebMvcConfigurer, BeanClassLo
/**
* Returns the uniquely available bean of the given type from the given {@link ApplicationContext} or the one provided
* by the given {@link Supplier} in case the initial lookup fails.
*
*
* @param type must not be {@literal null}.
* @param context must not be {@literal null}.
* @param fallback must not be {@literal null}.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015-2017 the original author or authors.
* Copyright 2015-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@ import com.querydsl.core.types.Predicate;
/**
* {@link HandlerMethodArgumentResolver} to allow injection of {@link com.mysema.query.types.Predicate} into Spring MVC
* controller methods.
*
*
* @author Christoph Strobl
* @author Oliver Gierke
* @since 1.11
@@ -55,7 +55,7 @@ public class QuerydslPredicateArgumentResolver implements HandlerMethodArgumentR
/**
* Creates a new {@link QuerydslPredicateArgumentResolver} using the given {@link ConversionService}.
*
*
* @param factory
* @param conversionService defaults to {@link DefaultConversionService} if {@literal null}.
*/
@@ -117,7 +117,7 @@ public class QuerydslPredicateArgumentResolver implements HandlerMethodArgumentR
/**
* Obtains the domain type information from the given method parameter. Will favor an explicitly registered on through
* {@link QuerydslPredicate#root()} but use the actual type of the method's return type as fallback.
*
*
* @param parameter must not be {@literal null}.
* @return
*/