public class WeakReferenceHolder extends Object implements Serializable
This class holds a weak reference to a given object. When this object is garbage collected this class will create a new instance of the given object.
We support these objects:
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
mLogger
Deprecated.
|
Constructor and Description |
---|
WeakReferenceHolder(int pObjectId,
int pPublicationId,
neo.util.collection.AbstractFetcher pFetcher)
Deprecated.
Creates an instance of WeakReferenceHolder
|
WeakReferenceHolder(Object referent,
neo.util.collection.AbstractFetcher pFetcher)
Deprecated.
Creates an instance of WeakReferenceHolder
|
Modifier and Type | Method and Description |
---|---|
Object |
get()
Deprecated.
get the object.
|
int |
getObjectId()
Deprecated.
Return the ID of the object we're keeping a weak reference to
|
int |
getOwnerPublicationId()
Deprecated.
Return the publication ID of the owner of the object we're keeping a weak reference to
|
public WeakReferenceHolder(int pObjectId, int pPublicationId, neo.util.collection.AbstractFetcher pFetcher)
pObjectId
- id of the object to holdpPublicationId
- pFetcher
- public WeakReferenceHolder(Object referent, neo.util.collection.AbstractFetcher pFetcher)
referent
- the object to holdpublic Object get()
public int getObjectId()
public int getOwnerPublicationId()
© 1998- 2021 Escenic AS