WOJRebelEOModelReloadHandler Class Reference

Collaboration diagram for WOJRebelEOModelReloadHandler:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void initialize ()
void modelAdded (NSNotification n)
void modelRemoved (NSNotification n)
void resetWonderEntityCache (NSNotification notification)
void storeCoordinatorAdded (NSNotification n)
void storeCoordinatorRemoved (NSNotification n)
synchronized void updateLoadedModels (NSNotification n)

Static Public Member Functions

static WOJRebelEOModelReloadHandler getInstance ()

Private Member Functions

void flushCaches ()
long lastModified (EOModel model)
void reloadModel (EOModel model)
boolean shouldUpdateModel (EOModel model)
boolean updateModel (EOModel model)

Private Attributes

Field _ERXEntityCache
Method _ERXEntityClassDescriptionCacheReset
Object _ERXEntityClassDescriptionFactory
final Map< EOModel, Long > modelCache = Collections.synchronizedMap(new WeakHashMap<EOModel, Long>())
final Map
< EOObjectStoreCoordinator,
EOModelGroup > 
oscCache = new WeakHashMap<EOObjectStoreCoordinator, EOModelGroup>()

Static Private Attributes

static final String EO_ENTITY_CACHE_RESET = "EOEntityCacheReset"
static boolean initialized = false
static final
WOJRebelEOModelReloadHandler 
instance = new WOJRebelEOModelReloadHandler()
static final Logger log = LoggerFactory.getInstance()
static final Class<?>[] NotificationClassArray = new Class[] { NSNotification.class }


Member Function Documentation

void flushCaches (  )  [private]

static WOJRebelEOModelReloadHandler getInstance (  )  [static]

void initialize (  ) 

long lastModified ( EOModel  model  )  [private]

void modelAdded ( NSNotification  n  ) 

void modelRemoved ( NSNotification  n  ) 

void reloadModel ( EOModel  model  )  [private]

void resetWonderEntityCache ( NSNotification  notification  ) 

boolean shouldUpdateModel ( EOModel  model  )  [private]

void storeCoordinatorAdded ( NSNotification  n  ) 

void storeCoordinatorRemoved ( NSNotification  n  ) 

synchronized void updateLoadedModels ( NSNotification  n  ) 

boolean updateModel ( EOModel  model  )  [private]


Member Data Documentation

Field _ERXEntityCache [private]

final String EO_ENTITY_CACHE_RESET = "EOEntityCacheReset" [static, private]

boolean initialized = false [static, private]

final Logger log = LoggerFactory.getInstance() [static, private]

final Map<EOModel, Long> modelCache = Collections.synchronizedMap(new WeakHashMap<EOModel, Long>()) [private]

final Class<?> [] NotificationClassArray = new Class[] { NSNotification.class } [static, private]

final Map<EOObjectStoreCoordinator, EOModelGroup> oscCache = new WeakHashMap<EOObjectStoreCoordinator, EOModelGroup>() [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:36 2012 for Project Wonder by  doxygen 1.5.8