C
- the update context typeT
- the concrete project reference typepublic abstract class AbstractProjectScavenger<C,T extends ProjectReference<C>> extends AbstractResourceScavenger<T>
DEFAULT_RESOURCE_ID
Constructor and Description |
---|
AbstractProjectScavenger(File scavengeLocation,
String instanceLocPath,
C context)
Create a new project scavenger.
|
Modifier and Type | Method and Description |
---|---|
C |
getContext() |
protected void |
updateResource(T reference,
String resourceId)
Called when an existing resource is visited during a scan.
|
allowAddResource, deleteResource, getHuntingGrounds, getReference, getResources, loadReference, onAdd, onRemove, releaseResourceId, reserveResource, reserveResourceId, triggerScan
public AbstractProjectScavenger(File scavengeLocation, String instanceLocPath, C context)
scavengeLocation
- the location to scan, if the location does not
exist or is not accessible, a default location inside the
platform instance location is usedinstanceLocPath
- the instance location sub-path to use if the
scavengeLocation is invalid or null
, may be
null
if the platform instance location should not
be used as fall-backcontext
- the update contextpublic C getContext()
protected void updateResource(T reference, String resourceId)
AbstractResourceScavenger
updateResource
in class AbstractResourceScavenger<T extends ProjectReference<C>>
reference
- the resource reference to updateresourceId
- the resource identifierBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a