Package org.eclipse.emf.cdo.common.model

# Klasse CDOPackageRegistryPopulator

java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.concurrent.Worker
org.eclipse.emf.cdo.common.model.CDOPackageRegistryPopulator

Alle implementierten Schnittstellen:
  `org.eclipse.net4j.util.event.INotifier`, `org.eclipse.net4j.util.event.INotifier.INotifier2`, `org.eclipse.net4j.util.lifecycle.IDeactivateable`, `org.eclipse.net4j.util.lifecycle.ILifecycle`, `org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation`

public class CDOPackageRegistryPopulator extends org.eclipse.net4j.util.concurrent.Worker
Populates a `target` package registry by asynchronously polling a `source` package registry for new `EPackage` registrations.

Seit:
  2.0
Autor:
  Eike Stepper

## Verschachtelte Klassen - Übersicht

Verschachtelte Klassen
Modifizierer und Typ
Klasse
Beschreibung
`static class`
`CDOPackageRegistryPopulator.Descriptor`
A package `descriptor` that resolves `packages` from a `source` package registry.

## Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.concurrent.Worker

`org.eclipse.net4j.util.concurrent.Worker.Terminate, org.eclipse.net4j.util.concurrent.Worker.WorkContext`

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.lifecycle.ILifecycle

`org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation`

## Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier

`org.eclipse.net4j.util.event.INotifier.INotifier2`

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final int`
`DEFAULT_SOURCE_POLL_INTERVAL`

### Von Klasse geerbte Felder org.eclipse.net4j.util.concurrent.Worker

`DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT`

### Von Klasse geerbte Felder org.eclipse.net4j.util.lifecycle.Lifecycle

`USE_LABEL`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`CDOPackageRegistryPopulator(CDOPackageRegistry target)`
`CDOPackageRegistryPopulator(EPackage.Registry source, CDOPackageRegistry target)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`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(org.eclipse.net4j.util.concurrent.Worker.WorkContext context)`

### Von Klasse geerbte Methoden org.eclipse.net4j.util.concurrent.Worker

`doDeactivate, getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler`

### Von Klasse geerbte Methoden org.eclipse.net4j.util.lifecycle.Lifecycle

`activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString`

### Von Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier

`addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

### Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier

`addListener, getListeners, hasListeners, removeListener`

## Felddetails

### DEFAULT_SOURCE_POLL_INTERVAL

public static final int DEFAULT_SOURCE_POLL_INTERVAL

Siehe auch:
  - Konstantenfeldwerte

## Konstruktordetails

### CDOPackageRegistryPopulator

public CDOPackageRegistryPopulator(CDOPackageRegistry target)

### CDOPackageRegistryPopulator

public CDOPackageRegistryPopulator(EPackage.Registry source, CDOPackageRegistry target)

## Methodendetails

### getSource

public EPackage.Registry getSource()

### getTarget

public CDOPackageRegistry getTarget()

### getSourcePollInterval

public long getSourcePollInterval()

### setSourcePollInterval

public void setSourcePollInterval(long sourcePollInterval)

### work

protected void work(org.eclipse.net4j.util.concurrent.Worker.WorkContext context) throws Exception

Angegeben von:
  `work` in Klasse `org.eclipse.net4j.util.concurrent.Worker`
Löst aus:
  `Exception`

### doWork

protected void doWork()

### doActivate

protected void doActivate() throws Exception

Setzt außer Kraft:
  `doActivate` in Klasse `org.eclipse.net4j.util.concurrent.Worker`
Löst aus:
  `Exception`

### getThreadName

protected String getThreadName()

Setzt außer Kraft:
  `getThreadName` in Klasse `org.eclipse.net4j.util.concurrent.Worker`

### populate

public static boolean populate(CDOPackageRegistry target)

### populate

public static boolean populate(EPackage.Registry source, CDOPackageRegistry target)