public class PatchElementProviderImpl extends Object implements PatchElementProvider, RequiresCallback, IncompatibleWithCallback
| Constructor and Description |
|---|
PatchElementProviderImpl(String name,
boolean isAddOn) |
| Modifier and Type | Method and Description |
|---|---|
<T extends PatchElementProvider> |
forType(Patch.PatchType patchType,
Class<T> clazz) |
Collection<String> |
getIncompatibleWith()
Get a list of patch-ids, this patch is incompatible with.
|
LayerType |
getLayerType()
Get the layer type for this element.
|
String |
getName()
Patch element provider name.
|
Patch.PatchType |
getPatchType()
Get the patch type.
|
Collection<String> |
getRequires()
List of the applied patch elements to this provider.
|
PatchElementProviderImpl |
incompatibleWith(String patchID) |
boolean |
isAddOn()
Whether the provider is an add-on (or a layer)
|
void |
oneOffPatch() |
PatchElementProviderImpl |
require(String elementId) |
void |
upgrade() |
public PatchElementProviderImpl(String name, boolean isAddOn)
public String getName()
UpgradeConditiongetName in interface UpgradeConditionpublic Patch.PatchType getPatchType()
UpgradeConditiongetPatchType in interface UpgradeConditionpublic Collection<String> getRequires()
UpgradeConditiongetRequires in interface UpgradeConditionpublic Collection<String> getIncompatibleWith()
UpgradeConditiongetIncompatibleWith in interface UpgradeConditionpublic boolean isAddOn()
PatchElementProviderisAddOn in interface PatchElementProviderpublic LayerType getLayerType()
PatchElementProvidergetLayerType in interface PatchElementProviderpublic void upgrade()
public void oneOffPatch()
public PatchElementProviderImpl incompatibleWith(String patchID)
incompatibleWith in interface IncompatibleWithCallbackpublic PatchElementProviderImpl require(String elementId)
require in interface RequiresCallbackpublic <T extends PatchElementProvider> T forType(Patch.PatchType patchType, Class<T> clazz)
forType in interface PatchElementProviderCopyright © 2014 JBoss by Red Hat. All rights reserved.