public class RequirementRegistration extends Object
| Modifier | Constructor and Description |
|---|---|
|
RequirementRegistration(RuntimeRequirementRegistration toCopy)
Copy constructor.
|
protected |
RequirementRegistration(String requiredName,
CapabilityId dependentId) |
|
RequirementRegistration(String requiredName,
String dependentName,
CapabilityScope dependentContext) |
protected |
RequirementRegistration(String requiredName,
String dependentName,
CapabilityScope dependentContext,
RegistrationPoint registrationPoint)
Creates a new requirement registration.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRegistrationPoint(RegistrationPoint toAdd) |
boolean |
equals(Object o) |
CapabilityScope |
getDependentContext() |
CapabilityId |
getDependentId() |
String |
getDependentName() |
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.
|
String |
getRequiredName() |
int |
hashCode() |
boolean |
removeRegistrationPoint(RegistrationPoint toAdd) |
public RequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentContext)
protected RequirementRegistration(String requiredName, CapabilityId dependentId)
protected RequirementRegistration(String requiredName, String dependentName, CapabilityScope 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 RequirementRegistration(RuntimeRequirementRegistration toCopy)
toCopy - the registration to copy.public String getRequiredName()
public String getDependentName()
public CapabilityScope getDependentContext()
public CapabilityId getDependentId()
public 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 © 2016 JBoss by Red Hat. All rights reserved.