public final class HostCapabilityContext extends Object implements CapabilityContext
CapabilityContext for capabilities whose use is restricted to
the Host Controller in which they are installed; e.g. they cannot be
resolved by requirers in a domain level context.| Modifier and Type | Field and Description |
|---|---|
static HostCapabilityContext |
INSTANCE |
GLOBAL| Constructor and Description |
|---|
HostCapabilityContext() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSatisfyRequirement(CapabilityId dependent,
String required,
CapabilityResolutionContext context)
Gets whether a given capability associated with this context can satisfy the given requirement.
|
boolean |
equals(Object o) |
String |
getName()
Gets a descriptive name of the context
|
int |
hashCode() |
boolean |
requiresConsistencyCheck()
Gets whether a consistency check must be performed when other capabilities depend on capabilities
in this context.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetIncludingContextspublic static final HostCapabilityContext INSTANCE
public boolean canSatisfyRequirement(CapabilityId dependent, String required, CapabilityResolutionContext context)
CapabilityContextcanSatisfyRequirement in interface CapabilityContextdependent - id of the dependent capability. Cannot be nullrequired - name of the capability associated with this capability context. May be null if the
dependent name is not known.context - resolution context in use for this resolution runtrue if the requirement can be satisfied from this context; false otherwisepublic boolean requiresConsistencyCheck()
CapabilityContextrequiresConsistencyCheck in interface CapabilityContexttrue if a consistency check is requiredpublic String getName()
CapabilityContextgetName in interface CapabilityContextnullCopyright © 2015 JBoss by Red Hat. All rights reserved.