public abstract class DeviceResourceDescriptor extends Object
Note: It is recommended that subclasses implement #equals and
#hashCode, so that clients, like decoration managers, can recognize when they have
two equal descriptors at hand, e.g. decorating an identical object.
ResourceManager| Constructor and Description |
|---|
DeviceResourceDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
createResource(Device device)
Creates the resource described by this descriptor
|
abstract void |
destroyResource(Object previouslyCreatedObject)
Undoes everything that was done by a previous call to create(...), given
the object that was returned by create(...).
|
public abstract Object createResource(Device device)
device - the Device on which to allocate the resourceDeviceResourceException - if unable to allocate the resourcepublic abstract void destroyResource(Object previouslyCreatedObject)
previouslyCreatedObject - an object that was returned by an equal
descriptor in a previous call to createResource(...).
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.