public class OAObjectCacheHubAdder<T extends OAObject> extends Object implements OAObjectCacheListener<T>
Modifier and Type | Field and Description |
---|---|
protected WeakReference<Hub<T>> |
wfHub |
Constructor and Description |
---|
OAObjectCacheHubAdder(Hub<T> hub)
Used to create a new HubControllerAdder that will add objects to the supplied Hub.
|
Modifier and Type | Method and Description |
---|---|
void |
afterAdd(Hub<T> hub,
T obj) |
void |
afterAdd(T obj)
called when a new object is added to OAObjectCache, during the object construction.
|
void |
afterLoad(T obj) |
void |
afterPropertyChange(T obj,
String propertyName,
Object oldValue,
Object newValue)
Called when there is a change to an object.
|
void |
afterRemove(Hub<T> hub,
T obj) |
void |
close() |
protected void |
finalize() |
boolean |
isUsed(T obj)
determine if a new object will be used.
|
protected WeakReference<Hub<T extends OAObject>> wfHub
public void close()
protected void finalize() throws Throwable
public void afterPropertyChange(T obj, String propertyName, Object oldValue, Object newValue)
OAObjectCacheListener
afterPropertyChange
in interface OAObjectCacheListener<T extends OAObject>
public void afterAdd(T obj)
OAObjectCacheListener
afterAdd
in interface OAObjectCacheListener<T extends OAObject>
public boolean isUsed(T obj)
public void afterAdd(Hub<T> hub, T obj)
afterAdd
in interface OAObjectCacheListener<T extends OAObject>
public void afterRemove(Hub<T> hub, T obj)
afterRemove
in interface OAObjectCacheListener<T extends OAObject>
public void afterLoad(T obj)
afterLoad
in interface OAObjectCacheListener<T extends OAObject>
Copyright © 1999–2019 ViaOA. All rights reserved.