public class RecentTaskRepositories extends java.lang.Object implements PersistentStateComponent<Element>
| Constructor and Description |
|---|
RecentTaskRepositories() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRepositories(java.util.Collection<TaskRepository> repositories) |
static RecentTaskRepositories |
getInstance() |
java.util.Set<TaskRepository> |
getRepositories() |
Element |
getState() |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic static RecentTaskRepositories getInstance()
public java.util.Set<TaskRepository> getRepositories()
public void addRepositories(java.util.Collection<TaskRepository> repositories)
public Element getState()
getState in interface PersistentStateComponent<Element>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void loadState(Element state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<Element>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)