Modifier and Type | Field and Description |
---|---|
static int |
DELAY_DIRTY |
static int |
DELAY_SYNCER |
static String |
MODEL_LOADED_PROPERTY |
Constructor and Description |
---|
AbstractModelFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds property change listener on the factory to be notified on
when new models are loaded by the factory.
|
M |
createFreshModel(ModelSource modelSource)
Create new model from given model source; returns null if there are errors
during creation.
|
protected abstract M |
createModel(ModelSource source) |
static ModelAccessProvider |
getAccessProvider() |
protected Object |
getKey(ModelSource source)
This method extracts the key from the model source.
|
protected M |
getModel(ModelSource source) |
List<M> |
getModels()
Returns list of models currently cached by the factory.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes property change listener.
|
public static final int DELAY_SYNCER
public static final int DELAY_DIRTY
public static final String MODEL_LOADED_PROPERTY
protected abstract M createModel(ModelSource source)
public M createFreshModel(ModelSource modelSource)
protected Object getKey(ModelSource source)
public static ModelAccessProvider getAccessProvider()
protected M getModel(ModelSource source)
public void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)