public class InstantiationCache
extends java.lang.Object
CannotInstantiateException
, and a set of InvalidatorsConstructor and Description |
---|
InstantiationCache(IModel model) |
Modifier and Type | Method and Description |
---|---|
void |
add(IProduction production,
CannotInstantiateException cie) |
boolean |
contains(IProduction production) |
void |
dispose() |
CannotInstantiateException |
get(IProduction production) |
java.util.Set<IProduction> |
getProductions(java.util.Set<IProduction> container) |
protected void |
processSlotMatchFailure(IProduction production,
SlotMatchFailure smf,
java.util.Collection<IInvalidator> invalidators) |
protected boolean |
registerAll(IProduction production,
CannotInstantiateException cie,
java.util.Collection<IInvalidator> invalidators)
analyze the cause of the exception and possibly install invalidators.
|
void |
remove(IProduction production) |
void |
throwIfCached(IProduction production) |
protected void |
unregisterAll(IProduction production)
this is called within the write lock
|
public InstantiationCache(IModel model)
public void dispose()
public java.util.Set<IProduction> getProductions(java.util.Set<IProduction> container)
public boolean contains(IProduction production)
public void remove(IProduction production)
public void add(IProduction production, CannotInstantiateException cie)
public CannotInstantiateException get(IProduction production)
public void throwIfCached(IProduction production) throws CannotInstantiateException
CannotInstantiateException
protected void unregisterAll(IProduction production)
production
- protected boolean registerAll(IProduction production, CannotInstantiateException cie, java.util.Collection<IInvalidator> invalidators)
production
- cie
- protected void processSlotMatchFailure(IProduction production, SlotMatchFailure smf, java.util.Collection<IInvalidator> invalidators) throws java.lang.IllegalStateException
java.lang.IllegalStateException