org.springframework.expression.TypeLocator Java Examples
The following examples show how to use
org.springframework.expression.TypeLocator.
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: StandardEvaluationContext.java From spring-analysis-note with MIT License | 5 votes |
@Override public TypeLocator getTypeLocator() { if (this.typeLocator == null) { this.typeLocator = new StandardTypeLocator(); } return this.typeLocator; }
Example #2
Source File: StandardComponentsTests.java From spring-analysis-note with MIT License | 5 votes |
@Test public void testStandardEvaluationContext() { StandardEvaluationContext context = new StandardEvaluationContext(); assertNotNull(context.getTypeComparator()); TypeComparator tc = new StandardTypeComparator(); context.setTypeComparator(tc); assertEquals(tc, context.getTypeComparator()); TypeLocator tl = new StandardTypeLocator(); context.setTypeLocator(tl); assertEquals(tl, context.getTypeLocator()); }
Example #3
Source File: StandardEvaluationContext.java From java-technology-stack with MIT License | 5 votes |
@Override public TypeLocator getTypeLocator() { if (this.typeLocator == null) { this.typeLocator = new StandardTypeLocator(); } return this.typeLocator; }
Example #4
Source File: StandardComponentsTests.java From java-technology-stack with MIT License | 5 votes |
@Test public void testStandardEvaluationContext() { StandardEvaluationContext context = new StandardEvaluationContext(); assertNotNull(context.getTypeComparator()); TypeComparator tc = new StandardTypeComparator(); context.setTypeComparator(tc); assertEquals(tc, context.getTypeComparator()); TypeLocator tl = new StandardTypeLocator(); context.setTypeLocator(tl); assertEquals(tl, context.getTypeLocator()); }
Example #5
Source File: StandardEvaluationContext.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public TypeLocator getTypeLocator() { if (this.typeLocator == null) { this.typeLocator = new StandardTypeLocator(); } return this.typeLocator; }
Example #6
Source File: StandardEvaluationContext.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override public TypeLocator getTypeLocator() { if (this.typeLocator == null) { this.typeLocator = new StandardTypeLocator(); } return this.typeLocator; }
Example #7
Source File: StandardComponentsTests.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Test public void testStandardEvaluationContext() { StandardEvaluationContext context = new StandardEvaluationContext(); assertNotNull(context.getTypeComparator()); TypeComparator tc = new StandardTypeComparator(); context.setTypeComparator(tc); assertEquals(tc, context.getTypeComparator()); TypeLocator tl = new StandardTypeLocator(); context.setTypeLocator(tl); assertEquals(tl, context.getTypeLocator()); }
Example #8
Source File: StandardEvaluationContext.java From spring-analysis-note with MIT License | 4 votes |
public void setTypeLocator(TypeLocator typeLocator) { Assert.notNull(typeLocator, "TypeLocator must not be null"); this.typeLocator = typeLocator; }
Example #9
Source File: StandardEvaluationContext.java From java-technology-stack with MIT License | 4 votes |
public void setTypeLocator(TypeLocator typeLocator) { Assert.notNull(typeLocator, "TypeLocator must not be null"); this.typeLocator = typeLocator; }
Example #10
Source File: StandardEvaluationContext.java From lams with GNU General Public License v2.0 | 4 votes |
public void setTypeLocator(TypeLocator typeLocator) { Assert.notNull(typeLocator, "TypeLocator must not be null"); this.typeLocator = typeLocator; }
Example #11
Source File: StandardEvaluationContext.java From spring4-understanding with Apache License 2.0 | 4 votes |
public void setTypeLocator(TypeLocator typeLocator) { Assert.notNull(typeLocator, "TypeLocator must not be null"); this.typeLocator = typeLocator; }
Example #12
Source File: SimpleEvaluationContext.java From spring-analysis-note with MIT License | 2 votes |
/** * {@code SimpleEvaluationContext} does not support use of type references. * @return {@code TypeLocator} implementation that raises a * {@link SpelEvaluationException} with {@link SpelMessage#TYPE_NOT_FOUND}. */ @Override public TypeLocator getTypeLocator() { return typeNotFoundTypeLocator; }
Example #13
Source File: SimpleEvaluationContext.java From java-technology-stack with MIT License | 2 votes |
/** * {@code SimpleEvaluationContext} does not support use of type references. * @return {@code TypeLocator} implementation that raises a * {@link SpelEvaluationException} with {@link SpelMessage#TYPE_NOT_FOUND}. */ @Override public TypeLocator getTypeLocator() { return typeNotFoundTypeLocator; }