public interface GarbageCollectionHandler<V,C>
| Modifier and Type | Method and Description |
|---|---|
void |
afterCollection(Ref ref, C callbackObject)
Called some time after a derived value is found to have been garbage collected.
|
C |
getCallbackObject(Ref ref, V derivedValue)
Returns a callback object that will be used when this handler is notified of a garbage collected derived value via the
afterCollection(com.bea.wli.config.Ref, C) method. |
C getCallbackObject(Ref ref, V derivedValue)
afterCollection(com.bea.wli.config.Ref, C) method. The implementations should store information that is necessary to perform any cleanup or other processing. Implementations, however, should not store any reference to the derived value in the callback objectref - the reference to the derived valuederivedValue - the derived valueafterCollection(com.bea.wli.config.Ref, C) methodvoid afterCollection(Ref ref, C callbackObject)
ref - the reference to the derived value that has been garbage collectedcallbackObject - the callback object that was returned from the getCallbackObject(com.bea.wli.config.Ref, V) method corresponding the derived value