public final class NbLoaderPool extends DataLoaderPool implements PropertyChangeListener, Runnable, LookupListener, TaskListener
Constructor and Description |
---|
NbLoaderPool() |
Modifier and Type | Method and Description |
---|---|
static void |
add(ManifestSection.LoaderSection s)
Adds new loader when previous and following are specified.
|
static void |
beginUpdates() |
static void |
endUpdates() |
static NbLoaderPool |
getNbLoaderPool()
Returns the only instance of the loader pool in our system.
|
static void |
load() |
protected Enumeration<DataLoader> |
loaders()
Enumerates all loaders.
|
void |
propertyChange(PropertyChangeEvent ev)
Listener to property changes.
|
static boolean |
remove(DataLoader dl,
NbLoaderPool pool)
Removes the loader.
|
void |
resultChanged(LookupEvent ev) |
void |
run()
Called from the request task
|
static void |
store() |
void |
taskFinished(Task task) |
static void |
waitFinished()
Allows tests to wait while processing of events is finished.
|
addChangeListener, addOperationListener, allLoaders, createWeakOperationListener, factory, findDataObject, findDataObject, fireChangeEvent, firstProducerOf, getDefault, getPreferredLoader, producersOf, removeChangeListener, removeOperationListener, setPreferredLoader, toArray
public static void beginUpdates()
public static void endUpdates()
public static void waitFinished()
public static void add(ManifestSection.LoaderSection s) throws Exception
If a loader of the same class already existed in the pool, that will be removed and replaced with the new one.
s
- adds loader sectionException
public static void store() throws IOException
IOException
public static void load() throws IOException
IOException
public static boolean remove(DataLoader dl, NbLoaderPool pool)
So the only difference is that when a DataObject is searched for a FileObject this loader will not be taken into account.
The loader pool may be resorted.
dl
- data loader to removepublic static NbLoaderPool getNbLoaderPool()
public void taskFinished(Task task)
taskFinished
in interface TaskListener
protected Enumeration<DataLoader> loaders()
loaders
in class DataLoaderPool
public void propertyChange(PropertyChangeEvent ev)
propertyChange
in interface PropertyChangeListener
public void resultChanged(LookupEvent ev)
resultChanged
in interface LookupListener