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()
UpgradeCondition
getName
in interface UpgradeCondition
public Patch.PatchType getPatchType()
UpgradeCondition
getPatchType
in interface UpgradeCondition
public Collection<String> getRequires()
UpgradeCondition
getRequires
in interface UpgradeCondition
public Collection<String> getIncompatibleWith()
UpgradeCondition
getIncompatibleWith
in interface UpgradeCondition
public boolean isAddOn()
PatchElementProvider
isAddOn
in interface PatchElementProvider
public LayerType getLayerType()
PatchElementProvider
getLayerType
in interface PatchElementProvider
public void upgrade()
public void oneOffPatch()
public PatchElementProviderImpl incompatibleWith(String patchID)
incompatibleWith
in interface IncompatibleWithCallback
public PatchElementProviderImpl require(String elementId)
require
in interface RequiresCallback
public <T extends PatchElementProvider> T forType(Patch.PatchType patchType, Class<T> clazz)
forType
in interface PatchElementProvider
Copyright © 2023 JBoss by Red Hat. All rights reserved.