public class InvocationContextImpl extends Object implements InvocationContext
Constructor and Description |
---|
InvocationContextImpl(ReferenceService referenceService,
ProvenanceReporter provenanceReporter) |
Modifier and Type | Method and Description |
---|---|
void |
addEntity(Object entity)
Add an entity to the context.
|
<T> List<T> |
getEntities(Class<T> entityType)
Return a list of all entities in the resolution context which match the
supplied entity type argument.
|
ProvenanceReporter |
getProvenanceReporter() |
ReferenceService |
getReferenceService()
Return the reference service to be used within this invocation context
|
void |
removeEntity(Object entity) |
public InvocationContextImpl(ReferenceService referenceService, ProvenanceReporter provenanceReporter)
public ReferenceService getReferenceService()
InvocationContext
getReferenceService
in interface InvocationContext
public ProvenanceReporter getProvenanceReporter()
getProvenanceReporter
in interface InvocationContext
public <T> List<T> getEntities(Class<T> entityType)
ReferenceContext
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.entityType
- 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
public void removeEntity(Object entity)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.