DATAMONGO-1533 - Polishing.
Enhance JavaDoc. Minor reformatting. Original pull request: #428.
This commit is contained in:
@@ -15,9 +15,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.springframework.data.mongodb.core.aggregation;
|
package org.springframework.data.mongodb.core.aggregation;
|
||||||
|
|
||||||
import com.mongodb.DBObject;
|
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
|
||||||
|
import com.mongodb.DBObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An {@link AggregationExpression} that renders a MongoDB Aggregation Framework expression from the AST of a
|
* An {@link AggregationExpression} that renders a MongoDB Aggregation Framework expression from the AST of a
|
||||||
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/expressions.html">SpEL
|
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/expressions.html">SpEL
|
||||||
@@ -53,7 +54,7 @@ public class AggregationSpELExpression implements AggregationExpression {
|
|||||||
/**
|
/**
|
||||||
* Creates new {@link AggregationSpELExpression} for the given {@literal expressionString} and {@literal parameters}.
|
* Creates new {@link AggregationSpELExpression} for the given {@literal expressionString} and {@literal parameters}.
|
||||||
*
|
*
|
||||||
* @param expression must not be {@literal null}.
|
* @param expressionString must not be {@literal null}.
|
||||||
* @param parameters can be empty.
|
* @param parameters can be empty.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -63,6 +64,9 @@ public class AggregationSpELExpression implements AggregationExpression {
|
|||||||
return new AggregationSpELExpression(expressionString, parameters);
|
return new AggregationSpELExpression(expressionString, parameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.springframework.data.mongodb.core.aggregation.AggregationExpression#toDbObject(org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public DBObject toDbObject(AggregationOperationContext context) {
|
public DBObject toDbObject(AggregationOperationContext context) {
|
||||||
return (DBObject) TRANSFORMER.transform(rawExpression, context, parameters);
|
return (DBObject) TRANSFORMER.transform(rawExpression, context, parameters);
|
||||||
|
|||||||
Reference in New Issue
Block a user