@Internal public final class ValueWrapper extends AbstractReleaseCallbackContainer implements ResolutionContext
AbstractReleaseCallbackContainer.release() method must be always called after the wrapper is
used, even if the resolved object is null (there might be still
some callbacks registered).| Constructor and Description |
|---|
ValueWrapper(String key) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get() |
EnhancedResolver.Hint |
getHint()
A hint is only set if a new instance is created during resolution.
|
String |
getKey() |
int |
getKeyPartIndex() |
boolean |
isNull() |
registerReleaseCallback, releaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterReleaseCallbackpublic ValueWrapper(String key)
key - public Object get()
null if no such object existspublic boolean isNull()
true if there is no wrapped value (resolved object),
false otherwisepublic String getKey()
getKey in interface ResolutionContextpublic int getKeyPartIndex()
getKeyPartIndex in interface ResolutionContextpublic EnhancedResolver.Hint getHint()
Copyright © 2017. All rights reserved.