public class LookUpManager extends Object
Constructor and Description |
---|
LookUpManager(LookUpStrategyResolver lookUpStrategyResolver) |
Modifier and Type | Method and Description |
---|---|
void |
addWorkingObject(Object workingObject) |
void |
clearWorkingObjects() |
<E> E |
lookUpWorkingObject(E externalObject)
As defined by
ScoreDirector.lookUpWorkingObject(Object) . |
<E> E |
lookUpWorkingObjectOrReturnNull(E externalObject)
As defined by
ScoreDirector.lookUpWorkingObjectOrReturnNull(Object) . |
void |
removeWorkingObject(Object workingObject) |
void |
resetWorkingObjects(Collection<Object> allFacts) |
public LookUpManager(LookUpStrategyResolver lookUpStrategyResolver)
public void resetWorkingObjects(Collection<Object> allFacts)
public void addWorkingObject(Object workingObject)
public void removeWorkingObject(Object workingObject)
public void clearWorkingObjects()
public <E> E lookUpWorkingObject(E externalObject)
ScoreDirector.lookUpWorkingObject(Object)
.E
- the object typeexternalObject
- sometimes nullIllegalArgumentException
- if there is no workingObject for externalObject, if it cannot be looked up
or if the externalObject's class is not supportedIllegalStateException
- if it cannot be looked uppublic <E> E lookUpWorkingObjectOrReturnNull(E externalObject)
ScoreDirector.lookUpWorkingObjectOrReturnNull(Object)
.E
- the object typeexternalObject
- sometimes nullIllegalArgumentException
- if it cannot be looked up or if the externalObject's class is not supportedIllegalStateException
- if it cannot be looked upCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.