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.WorkContext
ILifecycle.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, setGlobalErrorHandler
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getListeners, hasListeners, removeListener
public 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 Worker
Exception
protected String getThreadName()
getThreadName
in class Worker
public static boolean populate(CDOPackageRegistry target)
public static boolean populate(EPackage.Registry source, CDOPackageRegistry target)
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.