public class LoadingContext extends ProcessingContext
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
ignoreUnresolvedReferences
If set to true, will not throw exceptions when a reference to a configuration object cannot be resolved.
|
private ConcurrentHashMap<String,Referable> |
referables
A map of UUID to a loaded (being loaded) object.
|
typeSafeConfiguration, vitalizer
Constructor and Description |
---|
LoadingContext(BeanVitalizer vitalizer) |
LoadingContext(TypeSafeConfiguration typeSafeConfiguration) |
Modifier and Type | Method and Description |
---|---|
Future<Object> |
getConfigObjectFuture(String uuid) |
Referable |
getReferable(String uuid) |
boolean |
isIgnoreUnresolvedReferences() |
Referable |
registerReferableIfAbsent(String uuid,
Referable r)
Behaves like
ConcurrentMap.putIfAbsent(K, V) |
void |
setIgnoreUnresolvedReferences(boolean ignoreUnresolvedReferences) |
getTypeSafeConfiguration, getVitalizer
boolean ignoreUnresolvedReferences
private final ConcurrentHashMap<String,Referable> referables
public LoadingContext(TypeSafeConfiguration typeSafeConfiguration)
public LoadingContext(BeanVitalizer vitalizer)
public Referable registerReferableIfAbsent(String uuid, Referable r)
ConcurrentMap.putIfAbsent(K, V)
uuid
- config object uuidr
- the candidate futurepublic Referable getReferable(String uuid)
public Future<Object> getConfigObjectFuture(String uuid)
public boolean isIgnoreUnresolvedReferences()
public void setIgnoreUnresolvedReferences(boolean ignoreUnresolvedReferences)
Copyright © 2017 dcm4che.org. All rights reserved.