public class RuntimeRequirementRegistration extends RequirementRegistration
RuntimeCapability. As a runtime
requirement is associated with an actual management model, the registration exposes the point in the model
that triggered the requirement.| Constructor and Description |
|---|
RuntimeRequirementRegistration(RuntimeRequirementRegistration toCopy)
Copy constructor.
|
RuntimeRequirementRegistration(String requiredName,
String dependentName,
CapabilityContext dependentContext,
RegistrationPoint registrationPoint)
Creates a new requirement registration.
|
RuntimeRequirementRegistration(String requiredName,
String dependentName,
CapabilityContext dependentContext,
RegistrationPoint registrationPoint,
boolean runtimeOnly)
Creates a new requirement registration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRegistrationPoint(RegistrationPoint toAdd) |
RegistrationPoint |
getOldestRegistrationPoint()
Gets the registration point that been associated with the registration for the longest period.
|
int |
getRegistrationPointCount() |
Set<RegistrationPoint> |
getRegistrationPoints()
Get all registration points associated with this registration.
|
boolean |
isRuntimeOnly()
Gets whether the requirement is optional and runtime-only (i.e.
|
boolean |
removeRegistrationPoint(RegistrationPoint toAdd) |
equals, getDependentContext, getDependentId, getDependentName, getRequiredName, hashCodepublic RuntimeRequirementRegistration(String requiredName, String dependentName, CapabilityContext dependentContext, RegistrationPoint registrationPoint)
requiredName - the name of the required capabilitydependentName - the name of the capability that requires requiredNamedependentContext - context in which the dependent capability existsregistrationPoint - point in the configuration model that triggered the requirementpublic RuntimeRequirementRegistration(String requiredName, String dependentName, CapabilityContext dependentContext, RegistrationPoint registrationPoint, boolean runtimeOnly)
requiredName - the name of the required capabilitydependentName - the name of the capability that requires requiredNamedependentContext - context in which the dependent capability existsregistrationPoint - point in the configuration model that triggered the requirementruntimeOnly - true if and only if the requirement is optional and runtime-only
(i.e. not mandated by the persistent configuration), and
therefore should not result in a configuration validation failure
if it is not satisfiedpublic RuntimeRequirementRegistration(RuntimeRequirementRegistration toCopy)
toCopy - the registration to copy.public boolean isRuntimeOnly()
true if the requirement is optional and runtime-onlypublic RegistrationPoint getOldestRegistrationPoint()
null if there are no longer any registration pointspublic Set<RegistrationPoint> getRegistrationPoints()
null but may be emptypublic boolean addRegistrationPoint(RegistrationPoint toAdd)
public boolean removeRegistrationPoint(RegistrationPoint toAdd)
public int getRegistrationPointCount()
Copyright © 2015 JBoss by Red Hat. All rights reserved.