public interface CapabilityContext
capability is available.
The GLOBAL context can be used for most cases. A Host Controller will use a different implementation
of this interface for capabilities that are limited to some subset of the domain-wide model, e.g. a single
profile.
Implementations of this interface should override #equals(Object) and #hashCode() such that
logically equivalent but non-identical instances can function as keys in a hash map.
| Modifier and Type | Field and Description |
|---|---|
static CapabilityContext |
GLOBAL
A
CapabilityContext that can satisfy any dependent context. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSatisfyRequirements(CapabilityContext dependentContext)
Gets whether this context can satisfy a requirement associated with another context.
|
String |
getName()
Gets a descriptive name of the context
|
boolean |
requiresConsistencyCheck()
Gets whether a consistency check must be performed when other capabilities depend on capabilities
in this context.
|
static final CapabilityContext GLOBAL
CapabilityContext that can satisfy any dependent context. Meant for capabilities that are present
regardless of any context, or for convenience use in cases where there is only one context.boolean canSatisfyRequirements(CapabilityContext dependentContext)
dependentContext - a context associated with a capability that may require the capabilities associated
with this contexttrue if this context can satisfy requirements from capabilities in dependentContextboolean requiresConsistencyCheck()
true if a consistency check is requiredString getName()
nullCopyright © 2015 JBoss by Red Hat. All rights reserved.