public class EmptyReferenceContext extends Object implements ReferenceContext
Constructor and Description |
---|
EmptyReferenceContext() |
Modifier and Type | Method and Description |
---|---|
void |
addEntity(Object entity)
Add an entity to the context.
|
<T> List<T> |
getEntities(Class<T> arg0)
Return an empty entity set for all queries.
|
public <T> List<T> getEntities(Class<T> arg0)
getEntities
in interface ReferenceContext
T
- The generic type of the returned entity list. In general the
compiler is smart enough that you don't need to specify this,
it can pick it up from the entityType parameter.arg0
- Class of entity to return. Use Object.class to return all
entities within the reference contextpublic void addEntity(Object entity)
ReferenceContext
addEntity
in interface ReferenceContext
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.