
public class CDOPackageRegistryPopulator extends Worker
target package registry by asynchronously polling a source
package registry for new EPackage registrations.| Modifier and Type | Class and Description |
|---|---|
static class |
CDOPackageRegistryPopulator.Descriptor
|
Worker.WorkContextILifecycle.DeferrableActivation| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SOURCE_POLL_INTERVAL |
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT| Constructor and Description |
|---|
CDOPackageRegistryPopulator(CDOPackageRegistry target) |
CDOPackageRegistryPopulator(EPackage.Registry source,
CDOPackageRegistry target) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doActivate() |
protected void |
doWork() |
EPackage.Registry |
getSource() |
long |
getSourcePollInterval() |
CDOPackageRegistry |
getTarget() |
protected String |
getThreadName() |
static boolean |
populate(CDOPackageRegistry target) |
static boolean |
populate(EPackage.Registry source,
CDOPackageRegistry target) |
void |
setSourcePollInterval(long sourcePollInterval) |
protected void |
work(Worker.WorkContext context) |
doDeactivate, getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandleractivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, getListeners, hasListeners, removeListenerpublic static final int DEFAULT_SOURCE_POLL_INTERVAL
public CDOPackageRegistryPopulator(CDOPackageRegistry target)
public CDOPackageRegistryPopulator(EPackage.Registry source, CDOPackageRegistry target)
public EPackage.Registry getSource()
public CDOPackageRegistry getTarget()
public long getSourcePollInterval()
public void setSourcePollInterval(long sourcePollInterval)
protected void work(Worker.WorkContext context) throws Exception
protected void doWork()
protected void doActivate()
throws Exception
doActivate in class WorkerExceptionprotected String getThreadName()
getThreadName in class Workerpublic static boolean populate(CDOPackageRegistry target)
public static boolean populate(EPackage.Registry source, CDOPackageRegistry target)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.